]> git.ipfire.org Git - thirdparty/git.git/commit
t3905: remove nested git in command substitution
authorDenton Liu <liu.denton@gmail.com>
Tue, 9 Feb 2021 07:28:50 +0000 (23:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Feb 2021 21:34:58 +0000 (13:34 -0800)
commit389ece402292f066be6bb4a22ac72682a6a2aea6
treeb2b559ae7eeb750c3bfe3db6475002f83a1ffc4e
parentbbaa45c3aace10e25ae9dd966e867796fbf440ad
t3905: remove nested git in command substitution

If a git command in a nested command substitution fails, it will be
silently ignored since only the return code of the outer command
substitutions is reported. Factor out nested command substitutions so
that the error codes of those commands are reported.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3905-stash-include-untracked.sh