clone: rename static function `dir_exists()`.
authorMiriam Rubio <redacted>
Mon, 28 Oct 2019 16:55:23 +0000 (17:55 +0100)
committerJunio C Hamano <redacted>
Tue, 29 Oct 2019 02:54:23 +0000 (11:54 +0900)
commit6c020421390e9470b6e1a2e16e6978c239973bb5
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/clone.c
git clone https://git.99rst.org/PROJECT