From: Ian Jackson Date: Tue, 22 Oct 2013 16:52:45 +0000 (+0100) Subject: remote protocol fixes X-Git-Tag: debian/0.17_experimental2~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=f3edebffba3598f2fae8b4c37d911297d860f0e0 remote protocol fixes --- diff --git a/dgit b/dgit index 186b19e6..4c3d2244 100755 --- 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'};