summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Felipe Contreras <felipe.contreras@gmail.com>2012-11-11 15:19:55 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-12-13 15:55:41 -0800
commitadec972e5299b66a78cd30d4cdf54c5597a9560b (patch)
tree1830c2ec9702cc382aa972e39d525b5d84f43ed6
parentremote-bzr: add support for remote repositories (diff)
downloadtgif-adec972e5299b66a78cd30d4cdf54c5597a9560b.tar.xz
remote-bzr: update working tree upon pushing
A 'git push' doesn't update the working directory on the remote, but a 'bzr push' does. Teach the remote helper for bzr to update the working tree on the bzr side upon pushing via the "export" command. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index 2c05f35ef7..5b89a05371 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -571,6 +571,8 @@ def do_export(parser):
repo.generate_revision_history(revid, marks.get_tip('master'))
revno, revid = repo.last_revision_info()
peer.import_last_revision_info_and_tags(repo, revno, revid)
+ wt = peer.bzrdir.open_workingtree()
+ wt.update()
print "ok %s" % ref
print