Skip to content

Commit 6f59058

Browse files
committed
Merge branch 'nd/untracked-cache'
Hotfix for the 'untracked-cache' topic that is already in 'master'. * nd/untracked-cache: read-cache: fix untracked cache invalidation when split-index is used
2 parents 8f61ccf + ffcc9ba commit 6f59058

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

read-cache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,8 @@ static int add_index_entry_with_check(struct index_state *istate, struct cache_e
999999
}
10001000
pos = -pos-1;
10011001

1002-
untracked_cache_add_to_index(istate, ce->name);
1002+
if (!(option & ADD_CACHE_KEEP_CACHE_TREE))
1003+
untracked_cache_add_to_index(istate, ce->name);
10031004

10041005
/*
10051006
* Inserting a merged entry ("stage 0") into the index

0 commit comments

Comments
 (0)