X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=dgit;h=9936c5f943645d1956254535f0ebfd7da8f27442;hb=bdcfbefe02a6dba3f869e1a93e98e107a80edc7b;hp=3c56a3ae7f9208fead16400190de5faf6f3beafc;hpb=deb9a5e8b7be737f0ba41aebfbd3602b539ba947;p=dgit.git diff --git a/dgit b/dgit index 3c56a3ae..9936c5f9 100755 --- a/dgit +++ b/dgit @@ -469,6 +469,14 @@ our %defcfg = ('dgit.default.distro' => 'debian', 'dgit-distro.test-dummy.archive-query' => "dummycat:$td/aq", 'dgit-distro.test-dummy.mirror' => "file://$td/mirror/", 'dgit-distro.test-dummy.upload-host' => 'test-dummy', + 'dgit-distro.test-dummy-drs.ssh' => "$td/ssh", + 'dgit-distro.test-dummy-drs.username' => "alice", + 'dgit-distro.test-dummy-drs.git-check' => "true", + 'dgit-distro.test-dummy-drs.git-create' => "true", + 'dgit-distro.test-dummy-drs.git-url' => "$td/git", + 'dgit-distro.test-dummy-drs.archive-query' => "dummycat:$td/aq", + 'dgit-distro.test-dummy-drs.mirror' => "file://$td/mirror/", + 'dgit-distro.test-dummy-drs.upload-host' => 'test-dummy', ); sub cfg { @@ -1434,27 +1442,24 @@ sub dopush () { if (!check_for_git()) { create_remote_git_repo(); } - runcmd_ordryrun @git, qw(push),access_giturl(),"HEAD:".rrref(); + runcmd_ordryrun @git, qw(push),access_giturl(), + "HEAD:".rrref(), "refs/tags/$tag"; runcmd_ordryrun @git, qw(update-ref -m), 'dgit push', lrref(), 'HEAD'; - if (!$we_are_responder) { - if (act_local()) { - rename "$dscpath.tmp",$dscpath or die "$dscfn $!"; - } else { - progress "[new .dsc left in $dscpath.tmp]"; - } - } - if ($we_are_responder) { my $dryrunsuffix = act_local() ? "" : ".tmp"; responder_receive_files('signed-dsc-changes', "$dscpath$dryrunsuffix", "$changesfile$dryrunsuffix"); } else { + if (act_local()) { + rename "$dscpath.tmp",$dscpath or die "$dscfn $!"; + } else { + progress "[new .dsc left in $dscpath.tmp]"; + } sign_changes $changesfile; } - runcmd_ordryrun @git, qw(push),access_giturl(),"refs/tags/$tag"; my $host = access_cfg('upload-host','RETURN-UNDEF'); my @hostarg = defined($host) ? ($host,) : (); runcmd_ordryrun @dput, @hostarg, $changesfile;