Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
safe_create_leading_directories(): fix format of "if" chaining
author
Michael Haggerty
<mhagger@alum.mit.edu>
Mon, 6 Jan 2014 13:45:19 +0000
(14:45 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 6 Jan 2014 17:34:19 +0000
(09:34 -0800)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
5512ac5
)
diff --git
a/sha1_file.c
b/sha1_file.c
index 760dd60031bc4de7f0155303da5938c1571a2378..56b51b03e4079420402433eb4bb326a8476a915b 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-125,8
+125,7
@@
int safe_create_leading_directories(char *path)
*pos = '/';
return -3;
}
- }
- else if (mkdir(path, 0777)) {
+ } else if (mkdir(path, 0777)) {
if (errno == EEXIST &&
!stat(path, &st) && S_ISDIR(st.st_mode)) {
; /* somebody created it since we checked */
@@
-134,8
+133,7
@@
int safe_create_leading_directories(char *path)
*pos = '/';
return -1;
}
- }
- else if (adjust_shared_perm(path)) {
+ } else if (adjust_shared_perm(path)) {
*pos = '/';
return -2;
}