summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2014-11-19 10:41:53 +0100
committerSebastian Thiel <byronimo@gmail.com>2014-11-19 10:41:53 +0100
commitaedab26cc13ff23db73813b4443afd5dd07d5c44 (patch)
tree6771742bf45fc1da1caa487608de8411846584e2
parent15081dccc54090de3a091a656b56bb3dfc1d11c3 (diff)
parentbba4782dd85b16a8f58b817caa8c96b4852bb496 (diff)
downloadgitpython-experiment-2012.tar.gz
Merge branch 'neeraju-patch-1'experiment-2012
-rw-r--r--git/objects/submodule/base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index 2608f5db..6cb9ae9c 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -60,7 +60,6 @@ UPDWKTREE = UpdateProgress.UPDWKTREE
# mechanism which cause plenty of trouble of the only reason for packages and
# modules is refactoring - subpackages shoudn't depend on parent packages
class Submodule(util.IndexObject, Iterable, Traversable, RepoAliasMixin):
-
"""Implements access to a git submodule. They are special in that their sha
represents a commit in the submodule's repository which is to be checked out
at the path of this instance.
@@ -662,7 +661,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):