aboutsummaryrefslogtreecommitdiff
path: root/git-import-dsc
diff options
context:
space:
mode:
Diffstat (limited to 'git-import-dsc')
-rwxr-xr-xgit-import-dsc3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-import-dsc b/git-import-dsc
index b94879f5..59d2c215 100755
--- a/git-import-dsc
+++ b/git-import-dsc
@@ -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