summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-19 10:42:48 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-19 10:42:48 +0100
commit123cb67ea60d2ae2fb32b9b60ebfe69e43541662 (patch)
tree00cfc77b662db1c1468460c5e4941a852f34195a
parentae2baadf3aabe526bdaa5dfdf27fac0a1c63aa04 (diff)
downloadgitpython-123cb67ea60d2ae2fb32b9b60ebfe69e43541662.tar.gz
Backport of https://github.com/gitpython-developers/GitPython/pull/118
-rw-r--r--git/objects/submodule/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index f26cac91..14e1c930 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -644,7 +644,7 @@ class Submodule(util.IndexObject, Iterable, Traversable):
num_branches_with_new_commits = 0
rrefs = remote.refs
for rref in rrefs:
- num_branches_with_new_commits = len(mod.git.cherry(rref)) != 0
+ num_branches_with_new_commits += len(mod.git.cherry(rref)) != 0
# END for each remote ref
# not a single remote branch contained all our commits
if num_branches_with_new_commits == len(rrefs):