Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git.el: Prepend a slash to the file name when adding to .gitignore.
[gitweb.git]
/
builtin-add.c
diff --git
a/builtin-add.c
b/builtin-add.c
index bfbbb1bf52e10667f94dd574ab32fe070c98c4cb..2d256981733345f4a430e11812b6851f0351aabd 100644
(file)
--- a/
builtin-add.c
+++ b/
builtin-add.c
@@
-181,7
+181,7
@@
int cmd_add(int argc, const char **argv, char **envp)
if (active_cache_changed) {
if (write_cache(newfd, active_cache, active_nr) ||
- commit_lock_file(&lock_file))
+ c
lose(newfd) || c
ommit_lock_file(&lock_file))
die("Unable to write new index file");
}