projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make http-push smarter about creating remote dirs
[git.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index
642f00d
..
946a353
100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-51,6
+51,8
@@
int get_sha1_hex(const char *hex, unsigned char *sha1)
int safe_create_leading_directories(char *path)
{
char *pos = path;
+ if (*pos == '/')
+ pos++;
while (pos) {
pos = strchr(pos, '/');