chiark / gitweb /
Bring forward push of the version tag ref so it happens alongside the push of the...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 18 Jan 2014 22:50:46 +0000 (22:50 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:02 +0000 (18:29 +0000)
debian/changelog
dgit

index e98fd2fbf374a37bb264b15244b60ea8a3de2316..95f563b18c0d43e8bcde0906f2356f9b394f9b25 100644 (file)
@@ -1,6 +1,8 @@
 dgit (0.22~experimental1) experimental; urgency=low
 
   * New git-check and git-create methods "true" which are no-ops.
+  * Bring forward push of the version tag ref so it happens alongside
+    the push of the suite branch ref.
   * dgit-push-responder: WIP
 
  --
diff --git a/dgit b/dgit
index 3c56a3ae7f9208fead16400190de5faf6f3beafc..0a5de292378470888b334e3d5dd3cf9785a8112d 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1435,6 +1435,7 @@ sub dopush () {
        create_remote_git_repo();
     }
     runcmd_ordryrun @git, qw(push),access_giturl(),"HEAD:".rrref();
+    runcmd_ordryrun @git, qw(push),access_giturl(),"refs/tags/$tag";
     runcmd_ordryrun @git, qw(update-ref -m), 'dgit push', lrref(), 'HEAD';
 
     if (!$we_are_responder) {
@@ -1454,7 +1455,6 @@ sub dopush () {
        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;