@@ -899,7 +899,7 @@ static void dissociate_from_references(void)
899
899
free (alternates );
900
900
}
901
901
902
- static int dir_exists (const char * path )
902
+ static int path_exists (const char * path )
903
903
{
904
904
struct stat sb ;
905
905
return !stat (path , & sb );
@@ -981,7 +981,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
981
981
dir = guess_dir_name (repo_name , is_bundle , option_bare );
982
982
strip_trailing_slashes (dir );
983
983
984
- dest_exists = dir_exists (dir );
984
+ dest_exists = path_exists (dir );
985
985
if (dest_exists && !is_empty_dir (dir ))
986
986
die (_ ("destination path '%s' already exists and is not "
987
987
"an empty directory." ), dir );
@@ -992,7 +992,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
992
992
work_tree = NULL ;
993
993
else {
994
994
work_tree = getenv ("GIT_WORK_TREE" );
995
- if (work_tree && dir_exists (work_tree ))
995
+ if (work_tree && path_exists (work_tree ))
996
996
die (_ ("working tree '%s' already exists." ), work_tree );
997
997
}
998
998
@@ -1020,7 +1020,7 @@ int cmd_clone(int argc, const char **argv, const char *prefix)
1020
1020
}
1021
1021
1022
1022
if (real_git_dir ) {
1023
- if (dir_exists (real_git_dir ))
1023
+ if (path_exists (real_git_dir ))
1024
1024
junk_git_dir_flags |= REMOVE_DIR_KEEP_TOPLEVEL ;
1025
1025
junk_git_dir = real_git_dir ;
1026
1026
} else {
0 commit comments