diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-01-06 14:45:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-01-06 09:34:19 -0800 |
commit | 53a3972171723d5d67178c9eba03112931a86cae (patch) | |
tree | 4624d9bb26df5fd692d37015ecf5b2946e9967bd /sha1_file.c | |
parent | Git 1.8.5.2 (diff) | |
download | tgif-53a3972171723d5d67178c9eba03112931a86cae.tar.xz |
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>
Diffstat (limited to 'sha1_file.c')
-rw-r--r-- | sha1_file.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sha1_file.c b/sha1_file.c index 760dd60031..56b51b03e4 100644 --- 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; } |