diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-06-28 11:04:52 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-06-28 11:15:48 +0200 |
commit | 9c5f06d23c257b27c592aed2fe6760c8658a3822 (patch) | |
tree | e1991f8d972a27163fa20bccc8a0f275dd7858ce | |
parent | f1c64e2c7721497004e12807fead146eeb84bf26 (diff) |
GitRepository.commit_dir: use append insteald of += to append to list
-rw-r--r-- | gbp/git/repository.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 8142a255..d695cf14 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1444,12 +1444,12 @@ class GitRepository(object): # Build list of parents: parents = [] if cur: - parents = [ cur ] + parents.append(cur) if other_parents: for parent in other_parents: sha = self.rev_parse(parent) if sha not in parents: - parents += [ sha ] + parents.append(sha) commit = self.commit_tree(tree=tree, msg=msg, parents=parents, author=author, committer=committer) |