remote-bzr: always try to update the worktree
And fail properly when we can't. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
aa12a431f3
commit
715d64fe99
@ -641,9 +641,13 @@ def do_export(parser):
|
||||
except bzrlib.errors.DivergedBranches:
|
||||
print "error %s non-fast forward" % ref
|
||||
continue
|
||||
else:
|
||||
|
||||
try:
|
||||
wt = repo.bzrdir.open_workingtree()
|
||||
wt.update()
|
||||
except bzrlib.errors.NoWorkingTree:
|
||||
pass
|
||||
|
||||
print "ok %s" % ref
|
||||
|
||||
print
|
||||
|
Loading…
Reference in New Issue
Block a user