summaryrefslogtreecommitdiff
path: root/git/objects/submodule
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/submodule')
-rw-r--r--git/objects/submodule/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index ebb66495..cd7d4ec4 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -781,7 +781,7 @@ class Submodule(util.IndexObject, Iterable, Traversable):
csm.remove(module, force, configuration, dry_run)
del(csm)
# end
- if not dry_run and nc > 0:
+ if configuration and not dry_run and nc > 0:
# Assure we don't leave the parent repository in a dirty state, and commit our changes
# It's important for recursive, unforced, deletions to work as expected
self.module().index.commit("Removed submodule '%s'" % self.name)