summaryrefslogtreecommitdiff
path: root/submodule.c
diff options
context:
space:
mode:
authorBen Peart <benpeart@microsoft.com>2018-09-10 16:29:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-12 17:04:45 (GMT)
commit43f1180814f456ba5fb90a55c90766b5799bd1a7 (patch)
tree5265c29fe877499f82e97d0b8e7fd903eed8ad63 /submodule.c
parent53f9a3e157dbbc901a02ac2c73346d375e24978c (diff)
downloadgit-43f1180814f456ba5fb90a55c90766b5799bd1a7.zip
git-43f1180814f456ba5fb90a55c90766b5799bd1a7.tar.gz
git-43f1180814f456ba5fb90a55c90766b5799bd1a7.tar.bz2
git-mv: allow submodules and fsmonitor to work together
It was reported that GIT_FSMONITOR_TEST=$PWD/t7519/fsmonitor-all ./t7411-submodule-config.sh breaks as the fsmonitor data is out of sync with the state of the .gitmodules file. Update is_staging_gitmodules_ok() so that it no longer tells ie_match_stat() to ignore refreshing the fsmonitor data. Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Helped-by: Stefan Beller <sbeller@google.com> Signed-off-by: Ben Peart <benpeart@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 939d687..1c6d421 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;
}