summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-11-21 22:57:43 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-11-21 22:57:43 +0900
commit07c5a1bce304a7f6ff11edae9c819798a85caeec (patch)
tree1af769731b6ab3f6c675126b61aa55281772b65b /submodule.c
parentMerge branch 'js/rebase-i-autosquash-fix' into maint (diff)
parentgit-mv: allow submodules and fsmonitor to work together (diff)
downloadtgif-07c5a1bce304a7f6ff11edae9c819798a85caeec.tar.xz
Merge branch 'bp/mv-submodules-with-fsmonitor' into maint
When fsmonitor is in use, after operation on submodules updates .gitmodules, we lost track of the fact that we did so and relied on stale fsmonitor data. * bp/mv-submodules-with-fsmonitor: git-mv: allow submodules and fsmonitor to work together
Diffstat (limited to 'submodule.c')
-rw-r--r--submodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/submodule.c b/submodule.c
index a2b266fbfa..4a5212bdfb 100644
--- a/submodule.c
+++ b/submodule.c
@@ -65,8 +65,7 @@ int is_staging_gitmodules_ok(struct index_state *istate)
if ((pos >= 0) && (pos < istate->cache_nr)) {
struct stat st;
if (lstat(GITMODULES_FILE, &st) == 0 &&
- ie_match_stat(istate, istate->cache[pos], &st,
- CE_MATCH_IGNORE_FSMONITOR) & DATA_CHANGED)
+ ie_match_stat(istate, istate->cache[pos], &st, 0) & DATA_CHANGED)
return 0;
}