git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] setup: fix function name

From
CGCleber Rosa via GitGitGadget <gitgitgadget@gmail.com>
Date
Jun 9, 2022, 13:55 UTC
Message-ID
<pull.1255.git.1654782920256.gitgitgadget@gmail.com>
From: Cleber Rosa <crosa@redhat.com>

The reference given to users when the result of setup_git_directory_gently_1() is unexpected is incorrect.

This fixes the name of the function when presenting the BUG message.
Signed-off-by: Cleber Rosa <crosa@redhat.com>
---
    setup: fix function name
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1255%2Fclebergnu%2Ffix_function_name-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1255/clebergnu/fix_function_name-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1255
 setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.c b/setup.c
index faf5095e44d..b5a537258d2 100644
--- a/setup.c
+++ b/setup.c
@@ -1402,7 +1402,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");
 	}
 
 	/*

base-commit: 9c897eef06347cc5a3eb07c3ae409970ab1052c8
-- 
gitgitgadget
Next: Junio C Hamano
Message 1 of 2 in “setup: fix function name”
  1. setup: fix function nameCleber Rosa via GitGitGadget, Jun 9, 2022
  2. Junio C HamanoJun 17, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.