setup: fix function name in a BUG() message
The reference given to users when the result of setup_git_directory_gently_1() is unexpected is incorrect. Signed-off-by: Cleber Rosa <crosa@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Cleber Rosa committed
Jun 9, 2022 at 13:55 UTC
a3ba4fa715c67329736c9483f4b3fdab99cee50f
1 file changed
+1
-1
setup.c
+1
-1
index a7b36f3ffb..742ae56e3a 100644
--- a/setup.c
+++ b/setup.c
@@ -1393,7 +1393,7 @@ const char *setup_git_directory_gently(int *nongit_ok)
* find a repository.
*/
default:
- BUG("unhandled setup_git_directory_1() result");
+ BUG("unhandled setup_git_directory_gently_1() result");
}
/*