]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/submodule--helper.c
submodule update: use die_message()
authorGlen Choo <chooglen@google.com>
Tue, 15 Mar 2022 21:09:20 +0000 (14:09 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Mar 2022 22:07:43 +0000 (15:07 -0700)
commit55b3f12cb54077463709b2ac20cc64eba7dbf673
tree2b7b890b0188df201a63d2f0019dbd278fd6541e
parent3c3558f0953dea2151d2cac92c8148681f9ae9b6
submodule update: use die_message()

Use die_message() to print the "fatal: " prefix instead of doing it in
git-submodule.sh and remove a now-unnecessary exit code from "git
submodule--helper run-update-procedure".

Also, since die_message() adds the newline for us, replace an invocation
of die_with_status() with printf + exit invocations that do not add a
newline, but are otherwise identical to die_with_status().

Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/submodule--helper.c
git-submodule.sh