Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ph/submodule-rebase'
[gitweb.git]
/
entry.c
diff --git
a/entry.c
b/entry.c
index 915514aa5c43d3fd39f077a79f63ac27b841d255..cc841edf9051460b3a382ea25c0097f245ec8884 100644
(file)
--- a/
entry.c
+++ b/
entry.c
@@
-35,7
+35,7
@@
static void create_directories(const char *path, int path_len,
*/
if (mkdir(buf, 0777)) {
if (errno == EEXIST && state->force &&
- !unlink(buf) && !mkdir(buf, 0777))
+ !unlink
_or_warn
(buf) && !mkdir(buf, 0777))
continue;
die("cannot create directory at %s", buf);
}