Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 022a45e

Browse files
committed
Revert "Work around reparse point stat issues"
This reverts commit 32c12ea.
1 parent eddc1f1 commit 022a45e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/fileops.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ int git_futils_mkdir(
350350
int tmp_errno = errno;
351351

352352
/* ignore error if directory already exists */
353-
if (p_stat(make_path.ptr, &st) < 0 ||
354-
!(S_ISDIR(st.st_mode) || S_ISLNK(st.st_mode))) {
353+
if (p_stat(make_path.ptr, &st) < 0 || !S_ISDIR(st.st_mode)) {
355354
errno = tmp_errno;
356355
giterr_set(GITERR_OS, "Failed to make directory '%s'", make_path.ptr);
357356
goto done;

0 commit comments

Comments
 (0)