projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Doc: update git-send-email-script documentation.
[git.git]
/
receive-pack.c
diff --git
a/receive-pack.c
b/receive-pack.c
index
8d6faaa
..
9026f1b
100644
(file)
--- a/
receive-pack.c
+++ b/
receive-pack.c
@@
-106,6
+106,8
@@
static int update(const char *name,
return error("unpack should have generated %s, "
"but I can't find it!", new_hex);
+ safe_create_leading_directories(lock_name);
+
newfd = open(lock_name, O_CREAT | O_EXCL | O_WRONLY, 0666);
if (newfd < 0)
return error("unable to create %s (%s)",