aboutsummaryrefslogtreecommitdiffstats
path: root/object-name.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-12-15 17:54:27 -0800
committerJunio C Hamano <gitster@pobox.com>2024-12-15 17:54:28 -0800
commite6663b9ac58a64bd9712a10e28764f54ac6f9434 (patch)
tree87bb4e7c05f97a3db96960c9b1fb6705c1283488 /object-name.c
parentab738b2f1f35fbc3658ac107e1ad55b21c1e0fbc (diff)
parent6c397d01046251b4d26f2aded07a695ada196962 (diff)
downloadgit-e6663b9ac58a64bd9712a10e28764f54ac6f9434.tar.gz
Merge branch 'bf/explicit-config-set-in-advice-messages'
The advice messages now tell the newer 'git config set' command to set the advice.token configuration variable to squelch a message. * bf/explicit-config-set-in-advice-messages: advice: suggest using subcommand "git config set"
Diffstat (limited to 'object-name.c')
-rw-r--r--object-name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object-name.c b/object-name.c
index 9f2ae164e4..72298055b5 100644
--- a/object-name.c
+++ b/object-name.c
@@ -952,7 +952,7 @@ static int get_oid_basic(struct repository *r, const char *str, int len,
"\n"
"where \"$br\" is somehow empty and a 40-hex ref is created. Please\n"
"examine these refs and maybe delete them. Turn this message off by\n"
- "running \"git config advice.objectNameWarning false\"");
+ "running \"git config set advice.objectNameWarning false\"");
struct object_id tmp_oid;
char *real_ref = NULL;
int refs_found = 0;