remote-bzr: always try to update the worktree
[gitweb.git] / contrib / remote-helpers / git-remote-bzr
index b428244cac93c266f1118315503def6ffea1cf7a..eb91d2814be8b9cbb7214e7cbc847012d4d2394a 100755 (executable)
@@ -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