]> git.ipfire.org Git - thirdparty/git.git/commitdiff
gc: remove trailing dot from "gc.log" line
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 31 Aug 2021 14:37:29 +0000 (16:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 2 Sep 2021 18:22:32 +0000 (11:22 -0700)
Remove the trailing dot from the warning we emit about gc.log. It's
common for various terminal UX's to allow the user to select "words",
and by including the trailing dot a user wanting to select the path to
gc.log will need to manually remove the trailing dot.

Such a user would also probably need to adjust the path if it e.g. had
spaces in it, but this should address this very common case.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Suggested-by: Jan Judas <snugar.i@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c

index f05d2f0a1ac9cd5637237d7da987452523a8ced3..8e82d82aea27669b4cbfaabadc1c8fb142775060 100644 (file)
@@ -502,7 +502,7 @@ static int report_last_gc_error(void)
                 */
                warning(_("The last gc run reported the following. "
                               "Please correct the root cause\n"
-                              "and remove %s.\n"
+                              "and remove %s\n"
                               "Automatic cleanup will not be performed "
                               "until the file is removed.\n\n"
                               "%s"),