don't throw a python exception on tag failures or non existant branches
authorGuido Guenther <agx@sigxcpu.org>
Fri, 29 Feb 2008 17:04:50 +0000 (18:04 +0100)
committerGuido Guenther <agx@sigxcpu.org>
Fri, 29 Feb 2008 17:04:50 +0000 (18:04 +0100)
git-import-dsc

index b94879f5bab79d5e9e4c471bd293741546bd7add..59d2c2155712620bd8e93dd9146bb76808fd10db 100755 (executable)
@@ -263,7 +263,8 @@ def main(argv):
                     replace_source_tree(repo, unpack_dir, options.filters)
                     apply_debian_patch(src, dirs, options)
     except gbpc.CommandExecFailed:
-           raise GbpError
+        os.chdir(dirs['top'])
+        ret = 1
     except GbpError, err:
         if len(err.__str__()):
             print >>sys.stderr, err