chiark / gitweb /
remote protocol fixes
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 16:52:45 +0000 (17:52 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 22 Oct 2013 16:52:45 +0000 (17:52 +0100)
dgit

diff --git a/dgit b/dgit
index 186b19e688df8e457bb6f9a99c9bd35b5dffda7e..4c3d224431e748ab04c183c1523800a2c201fc05 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1262,6 +1262,7 @@ sub dopush () {
     }
 
     responder_send_file('changes',$changesfile);
+    responder_send_command("param head $head");
 
     my $tfn = sub { ".git/dgit/tag$_[0]"; };
     my ($tagobjfn) =
@@ -1527,8 +1528,8 @@ sub i_resp_file ($) {
 
 our %i_param;
 
-sub i_param ($) {
-    $_[0] =~ m/^(\S+) (.*)$/;
+sub i_resp_param ($) {
+    $_[0] =~ m/^(\S+) (.*)$/ or badproto \*RO, "bad param spec";
     $i_param{$1} = $2;
 }
 
@@ -1557,6 +1558,7 @@ sub i_localname_dsc {
 }
 
 sub i_want_signed_tag {
+    printdebug Dumper(\%i_param, $i_dscfn);
     defined $i_param{'head'} && defined $i_dscfn
        or badproto \*RO, "sequencing error";
     my $head = $i_param{'head'};