mirror of
https://github.com/git/git.git
synced 2024-11-28 20:44:04 +08:00
dir: free untracked cache when removing it
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
f900c8326a
commit
9624a22ac6
@ -1123,6 +1123,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
|
||||
add_untracked_ident(the_index.untracked);
|
||||
the_index.cache_changed |= UNTRACKED_CHANGED;
|
||||
} else if (!untracked_cache && the_index.untracked) {
|
||||
free_untracked_cache(the_index.untracked);
|
||||
the_index.untracked = NULL;
|
||||
the_index.cache_changed |= UNTRACKED_CHANGED;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user