From: Ian Jackson Date: Wed, 28 Aug 2013 22:37:30 +0000 (+0100) Subject: Update the local tracking branch for the dgit remote, when pushing. Closes: #720956. X-Git-Tag: debian/0.13~5 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1ec102dd363fda92126fcaa433bf1fdee747914e;p=dgit.git Update the local tracking branch for the dgit remote, when pushing. Closes: #720956. --- diff --git a/debian/changelog b/debian/changelog index cbc2dd4e..d3b225ec 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 0a599b0d..353c2e5c 100755 --- 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 {