clone: rename static function `dir_exists()`.
commit6c020421390e9470b6e1a2e16e6978c239973bb5
authorMiriam Rubio <mirucam@gmail.com>
Mon, 28 Oct 2019 16:55:23 +0000 (28 17:55 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Oct 2019 02:54:23 +0000 (29 11:54 +0900)
tree8f5a09147c0d7f31714b471bc56f2cd09165b05f
parent5fa0f5238b0cd46cfe7f6fa76c3f526ea98148d9
clone: rename static function `dir_exists()`.

builtin/clone.c has a static function dir_exists() that
checks if a given path exists on the filesystem.  It returns
true (and it is correct for it to return true) when the
given path exists as a non-directory (e.g. a regular file).

This is confusing.  What the caller wants to check, and what
this function wants to return, is if the path exists, so
rename it to path_exists().

Signed-off-by: Miriam Rubio <mirucam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c