Pass the right number of arguments to commit, fixes single-branch imports.
Signed-off-by: Simon Hausmann <hausmann@kde.org>
This commit is contained in:
@ -330,7 +330,7 @@ def commit(details, files, branch, branchPrefix, parent, merged = ""):
|
|||||||
action = file["action"]
|
action = file["action"]
|
||||||
|
|
||||||
if file["type"] == "apple":
|
if file["type"] == "apple":
|
||||||
print "\nfile %s is a strange apple file that forks. Ignoring!" %s path
|
print "\nfile %s is a strange apple file that forks. Ignoring!" % path
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if action == "delete":
|
if action == "delete":
|
||||||
@ -608,7 +608,7 @@ else:
|
|||||||
merged = "refs/heads/" + merged
|
merged = "refs/heads/" + merged
|
||||||
commit(description, files, branch, branchPrefix, parent, merged)
|
commit(description, files, branch, branchPrefix, parent, merged)
|
||||||
else:
|
else:
|
||||||
commit(description, filesForCommit, branch, globalPrefix, initialParent)
|
commit(description, files, branch, globalPrefix, initialParent)
|
||||||
initialParent = ""
|
initialParent = ""
|
||||||
except IOError:
|
except IOError:
|
||||||
print gitError.read()
|
print gitError.read()
|
||||||
|
Reference in New Issue
Block a user