Skip to content

Commit

Permalink
remote-bzr: only update workingtree on local repos
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed Apr 7, 2013
1 parent 9d9d698 commit f00f251
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/remote-helpers/git-remote-bzr
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f00f251

Please sign in to comment.