From 56ae34ee36c992d3d382432c3e4cc423c4744d5b Mon Sep 17 00:00:00 2001 From: neeraju Date: Sun, 18 Aug 2013 20:58:14 +0530 Subject: Update base.py --- 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 1b94f522..500c175f 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -657,7 +657,7 @@ class Submodule(util.IndexObject, Iterable, Traversable, RepoAliasMixin): 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