diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-06-17 10:15:17 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-17 10:15:18 -0700 |
commit | a3e6b426b95e5a31a884101b7bea4e5d075aea06 (patch) | |
tree | a4ae23d11e7bd12edac2a70c05131a4a6b6549a7 /builtin | |
parent | Merge branch 'ds/topo-traversal-using-commit-graph' (diff) | |
parent | mark_fsmonitor_valid(): mark the index as changed if needed (diff) | |
download | tgif-a3e6b426b95e5a31a884101b7bea4e5d075aea06.tar.xz |
Merge branch 'js/fsmonitor-unflake'
The data collected by fsmonitor was not properly written back to
the on-disk index file, breaking t7519 tests occasionally, which
has been corrected.
* js/fsmonitor-unflake:
mark_fsmonitor_valid(): mark the index as changed if needed
fill_stat_cache_info(): prepare for an fsmonitor fix
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/update-index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/update-index.c b/builtin/update-index.c index 27db0928bf..3f8cc6ccb4 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c @@ -280,7 +280,7 @@ static int add_one_path(const struct cache_entry *old, const char *path, int len memcpy(ce->name, path, len); ce->ce_flags = create_ce_flags(0); ce->ce_namelen = len; - fill_stat_cache_info(ce, st); + fill_stat_cache_info(&the_index, ce, st); ce->ce_mode = ce_mode_from_stat(old, st->st_mode); if (index_path(&the_index, &ce->oid, path, st, |