We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f24f95 commit ca3fdbeCopy full SHA for ca3fdbe
2 files changed
.gitmodules
@@ -1,3 +1,3 @@
1
-[submodule "gitdb"]
2
- path = lib/git/ext/gitdb
3
- url = git://gitorious.org/git-python/gitdb.git
+[submodule "gitdb"]
+ path = lib/git/ext/gitdb
+ url = git://gitorious.org/git-python/gitdb.git
lib/git/objects/submodule/base.py
@@ -387,7 +387,11 @@ def update(self, recursive=False, init=True, to_latest_revision=False):
387
# update the working tree
388
if mrepo.head.commit.binsha != binsha:
389
if is_detached:
390
- mrepo.git.checkout(hexsha)
+ # NOTE: for now we force, the user is no supposed to change detached
391
+ # submodules anyway. Maybe at some point this becomes an option, to
392
+ # properly handle user modifications - see below for future options
393
+ # regarding rebase and merge.
394
+ mrepo.git.checkout(hexsha, force=True)
395
else:
396
# TODO: allow to specify a rebase, merge, or reset
397
# TODO: Warn if the hexsha forces the tracking branch off the remote
0 commit comments