summaryrefslogtreecommitdiff
path: root/builtin/update-index.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/update-index.c')
-rw-r--r--builtin/update-index.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c
index 52eaebae91..1af8a00b88 100644
--- a/builtin/update-index.c
+++ b/builtin/update-index.c
@@ -451,7 +451,8 @@ static void update_one(const char *path)
int stat_errno = 0;
struct stat st;
- if (mark_valid_only || mark_skip_worktree_only || force_remove)
+ if (mark_valid_only || mark_skip_worktree_only || force_remove ||
+ mark_fsmonitor_only)
st.st_mode = 0;
else if (lstat(path, &st) < 0) {
st.st_mode = 0;