We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
2 parents15081dc +bba4782 commitaedab26Copy full SHA for aedab26
git/objects/submodule/base.py
@@ -60,7 +60,6 @@ class UpdateProgress(RemoteProgress):
60
# mechanism which cause plenty of trouble of the only reason for packages and
61
# modules is refactoring - subpackages shoudn't depend on parent packages
62
classSubmodule(util.IndexObject,Iterable,Traversable,RepoAliasMixin):
63
-
64
"""Implements access to a git submodule. They are special in that their sha
65
represents a commit in the submodule's repository which is to be checked out
66
at the path of this instance.
@@ -662,7 +661,7 @@ def remove(self, module=True, force=False, configuration=True, dry_run=False):
662
661
num_branches_with_new_commits=0
663
rrefs=remote.refs
664
forrrefinrrefs:
665
-num_branches_with_new_commits=len(mod.git.cherry(rref))!=0
+num_branches_with_new_commits+=len(mod.git.cherry(rref))!=0
666
# END for each remote ref
667
# not a single remote branch contained all our commits
668
ifnum_branches_with_new_commits==len(rrefs):