chiark / gitweb /
Update the local tracking branch for the dgit remote, when pushing. Closes: #720956.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Aug 2013 22:37:30 +0000 (23:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Aug 2013 22:37:30 +0000 (23:37 +0100)
debian/changelog
dgit

index cbc2dd4e47e437f5c64ccd597e0e86f36d4354f0..d3b225ecb5e423ceb54ee12da2e78d6340f58c2f 100644 (file)
@@ -11,6 +11,8 @@ dgit (0.13) unstable; urgency=low
     Closes: #720958.
   * Fix some bugs in dgit fetch --dry-run which made dgit push
     --dry-run often not work at all.
+  * Update the local tracking branch for the dgit remote, when pushing.
+    Closes: #720956.
 
  --
 
diff --git a/dgit b/dgit
index 0a599b0d2ff4278ba45109f1eae31f082382d15b..353c2e5c6a0b1dd64809bb7d6576aee43cd6d215 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -911,6 +911,7 @@ sub dopush () {
        create_remote_git_repo();
     }
     runcmd_ordryrun @git, qw(push),access_giturl(),"HEAD:".rrref();
+    runcmd_ordryrun @git, qw(update-ref -m), 'dgit push', lrref(), 'HEAD';
     if (!$dryrun) {
        rename "../$dscfn.tmp","../$dscfn" or die "$dscfn $!";
     } else {