Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Make update-cache be explicit about failed open() when doing
author
Petr Baudis
<pasky@ucw.cz>
Tue, 26 Apr 2005 19:04:55 +0000
(21:04 +0200)
committer
Petr Baudis
<xpasky@machine.sinus.cz>
Wed, 11 May 2005 20:37:58 +0000
(22:37 +0200)
add_file_to_cache().
update-cache.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d81ed1b
)
diff --git
a/update-cache.c
b/update-cache.c
index 2f5d620fd8b849d761a2bf337ecdd86f251271ac..d7caed64f3384bac8f7a95992ce02c39190db4af 100644
(file)
--- a/
update-cache.c
+++ b/
update-cache.c
@@
-73,7
+73,7
@@
static int add_file_to_cache(char *path)
if (allow_remove)
return remove_file_from_cache(path);
}
- return
-1
;
+ return
error("open(\"%s\"): %s", path, strerror(errno))
;
}
namelen = strlen(path);
size = cache_entry_size(namelen);