From 123cb67ea60d2ae2fb32b9b60ebfe69e43541662 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 19 Nov 2014 10:42:48 +0100 Subject: Backport of https://github.com/gitpython-developers/GitPython/pull/118 --- git/objects/submodule/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.1