aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-04-05 21:49:20 -0600
committerJunio C Hamano <gitster@pobox.com>2013-04-07 00:39:27 -0700
commitf00f2511d97efd01d75eb1f769366ccc50a01dc9 (patch)
tree923d4bd67b21923410b977836c2ba856f6470c94 /contrib
parent9d9d698c43aa11d96e9beaf84d77dbceb7460fdd (diff)
downloadgit-f00f2511d97efd01d75eb1f769366ccc50a01dc9.tar.gz
git-f00f2511d97efd01d75eb1f769366ccc50a01dc9.tar.xz
remote-bzr: only update workingtree on local repos
Apparently, that's the only way it's possible. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/remote-helpers/git-remote-bzr3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/remote-helpers/git-remote-bzr b/contrib/remote-helpers/git-remote-bzr
index a99a92412..9466cb9de 100755
--- a/contrib/remote-helpers/git-remote-bzr
+++ b/contrib/remote-helpers/git-remote-bzr
@@ -630,10 +630,9 @@ def do_export(parser):
peer.import_last_revision_info_and_tags(repo, revno, revid)
else:
peer.import_last_revision_info(repo.repository, revno, revid)
- wt = peer.bzrdir.open_workingtree()
else:
wt = repo.bzrdir.open_workingtree()
- wt.update()
+ wt.update()
print "ok %s" % ref
print