Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Revert "builtin-commit.c: remove useless check added by faulty cut and paste"
[gitweb.git]
/
builtin-commit.c
diff --git
a/builtin-commit.c
b/builtin-commit.c
index 265ba6bcd4586f11efc17d17b9ee4520edd04060..6d2ca808b55136b60e65994e8929c3a068b425d6 100644
(file)
--- a/
builtin-commit.c
+++ b/
builtin-commit.c
@@
-156,6
+156,8
@@
static int list_paths(struct path_list *list, const char *with_tree,
for (i = 0; i < active_nr; i++) {
struct cache_entry *ce = active_cache[i];
+ if (ce->ce_flags & htons(CE_UPDATE))
+ continue;
if (!pathspec_match(pattern, m, ce->name, 0))
continue;
path_list_insert(ce->name, list);