From adec972e5299b66a78cd30d4cdf54c5597a9560b Mon Sep 17 00:00:00 2001 From: Felipe Contreras Date: Sun, 11 Nov 2012 15:19:55 +0100 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- contrib/remote-helpers/git-remote-bzr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr index 2c05f35ef..5b89a0537 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 -- 2.26.2