| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8a01ec4 commit 6497d1e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -836,7 +836,7 @@ def remove(self, module=True, force=False, configuration=True, dry_run=False): | |||
| 836 | 836 | num_branches_with_new_commits += len(mod.git.cherry(rref)) != 0 | |
| 837 | 837 | # END for each remote ref | |
| 838 | 838 | # not a single remote branch contained all our commits | |
| 839 | - if num_branches_with_new_commits == len(rrefs): | ||
| 839 | + if len(rrefs) and num_branches_with_new_commits == len(rrefs): | ||
| 840 | 840 | raise InvalidGitRepositoryError( | |
| 841 | 841 | "Cannot delete module at %s as there are new commits" % mod.working_tree_dir) | |
| 842 | 842 | # END handle new commits | |
| Back | FazBrowse Home | New Git URL |
0 commit comments