summaryrefslogtreecommitdiff
path: root/git-import-dsc
diff options
context:
space:
mode:
Diffstat (limited to 'git-import-dsc')
-rwxr-xr-xgit-import-dsc7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-import-dsc b/git-import-dsc
index a74f7b3..29fc1bc 100755
--- a/git-import-dsc
+++ b/git-import-dsc
@@ -152,8 +152,11 @@ def main(argv):
if not repo.has_tag(tag):
print "tag %s not found, importing %s tarball" % (tag, format[1])
# FIXME: this is what import-orig does - merge
- if not src.native and not is_empty:
- repo.set_branch(options.upstream_branch)
+ if not is_empty:
+ if src.native:
+ repo.set_branch(options.debian_branch)
+ else:
+ repo.set_branch(options.upstream_branch)
repo.replace_tree(unpack_dir, options.filters, verbose=True)
gbpc.GitCommitAll()(msg="Imported %s" % msg)
gitTag(tag, msg=msg)