diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 18:34:58 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-21 18:34:58 +0100 |
commit | e4d3809161fc54d6913c0c2c7f6a7b51eebe223f (patch) | |
tree | 1eebc9f43a1302c537da84e9a7219918da131f45 /git/objects/submodule | |
parent | e48e52001d5abad7b28a4ecadde63c78c3946339 (diff) | |
download | gitpython-e4d3809161fc54d6913c0c2c7f6a7b51eebe223f.tar.gz |
Added advance usage examples to tutorial and made minor fixes.
GIT_PYTHON_TRACE would actually fail (now) if we debugged archive operations.
Related to #239
Diffstat (limited to 'git/objects/submodule')
-rw-r--r-- | git/objects/submodule/base.py | 2 |
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) |