Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf2b92c6

Browse files
committed
BF: Allow to remove a submodule with a remote without refs
1 parentb3b9c02 commitf2b92c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎git/objects/submodule/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ def remove(self, module=True, force=False, configuration=True, dry_run=False):
836836
num_branches_with_new_commits+=len(mod.git.cherry(rref))!=0
837837
# END for each remote ref
838838
# not a single remote branch contained all our commits
839-
ifnum_branches_with_new_commits==len(rrefs):
839+
iflen(rrefs)andnum_branches_with_new_commits==len(rrefs):
840840
raiseInvalidGitRepositoryError(
841841
"Cannot delete module at %s as there are new commits"%mod.working_tree_dir)
842842
# END handle new commits

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp