safe_create_leading_directories(): fix format of "if" chaining

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Michael Haggerty committed Jan 6, 2014 at 14:45 UTC 53a3972171723d5d67178c9eba03112931a86cae
1 file changed +2 -4
sha1_file.c
+2 -4
@@ -125,8 +125,7 @@ int safe_create_leading_directories(char *path)
125 *pos = '/';
126 return -3;
127 }
128 - }
129 - else if (mkdir(path, 0777)) {
128 + } else if (mkdir(path, 0777)) {
129 if (errno == EEXIST &&
130 !stat(path, &st) && S_ISDIR(st.st_mode)) {
131 ; /* somebody created it since we checked */
@@ -134,8 +133,7 @@ int safe_create_leading_directories(char *path)
133 *pos = '/';
134 return -1;
135 }
137 - }
138 - else if (adjust_shared_perm(path)) {
136 + } else if (adjust_shared_perm(path)) {
137 *pos = '/';
138 return -2;
139 }