]> git.ipfire.org Git - thirdparty/git.git/commitdiff
setup: fix function name in a BUG() message
authorCleber Rosa <crosa@redhat.com>
Thu, 9 Jun 2022 13:55:20 +0000 (13:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jun 2022 22:44:19 +0000 (15:44 -0700)
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>
setup.c

diff --git a/setup.c b/setup.c
index a7b36f3ffbfbf272a319005828961d9f7db8afe8..742ae56e3a070f1f7d7f35415009ee2432dd13e4 100644 (file)
--- 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");
        }
 
        /*