diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-07-24 14:50:43 -0700 |
commit | 392b3dde513083b9975c990cd2cf410d2846b941 (patch) | |
tree | 61688f2addc58bfd88ebeb8698c67a552f593a9a /t/lib-submodule-update.sh | |
parent | Merge branch 'rj/submodule-fsck-skip' (diff) | |
parent | submodule.c: report the submodule that an error occurs in (diff) | |
download | tgif-392b3dde513083b9975c990cd2cf410d2846b941.tar.xz |
Merge branch 'sb/submodule-move-head-error-msg'
"git checkout --recurse-submodules another-branch" did not report
in which submodule it failed to update the working tree, which
resulted in an unhelpful error message.
* sb/submodule-move-head-error-msg:
submodule.c: report the submodule that an error occurs in
Diffstat (limited to 't/lib-submodule-update.sh')
-rwxr-xr-x | t/lib-submodule-update.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/lib-submodule-update.sh b/t/lib-submodule-update.sh index aa5ac03325..be78cdc1ff 100755 --- a/t/lib-submodule-update.sh +++ b/t/lib-submodule-update.sh @@ -782,7 +782,8 @@ test_submodule_recursing_with_args_common() { ( cd submodule_update && git branch -t invalid_sub1 origin/invalid_sub1 && - test_must_fail $command invalid_sub1 && + test_must_fail $command invalid_sub1 2>err && + test_i18ngrep sub1 err && test_superproject_content origin/add_sub1 && test_submodule_content sub1 origin/add_sub1 ) |