diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-19 10:42:48 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-19 10:42:48 +0100 |
commit | 123cb67ea60d2ae2fb32b9b60ebfe69e43541662 (patch) | |
tree | 00cfc77b662db1c1468460c5e4941a852f34195a | |
parent | ae2baadf3aabe526bdaa5dfdf27fac0a1c63aa04 (diff) | |
download | gitpython-123cb67ea60d2ae2fb32b9b60ebfe69e43541662.tar.gz |
Backport of https://github.com/gitpython-developers/GitPython/pull/118
-rw-r--r-- | git/objects/submodule/base.py | 2 |
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): |