Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
dir: free untracked cache when removing it
author
Christian Couder
<christian.couder@gmail.com>
Tue, 29 Dec 2015 07:09:25 +0000
(08:09 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 29 Dec 2015 21:38:41 +0000
(13:38 -0800)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-index.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f900c83
)
diff --git
a/builtin/update-index.c
b/builtin/update-index.c
index 7431938fa654ba9af524a7018ab2c7be8242caaa..a6fff87c1d2825d46818fd481b3fb01891d6d535 100644
(file)
--- a/
builtin/update-index.c
+++ b/
builtin/update-index.c
@@
-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;
}