diff options
author | John Keeping <john@keeping.me.uk> | 2013-06-16 15:18:16 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-06-17 13:30:01 -0700 |
commit | 1ae2e19a32729e21778b74f61794369203b58a1d (patch) | |
tree | a7779d5829f82382ceaf9f077c0cc9a6fe3223e7 /git-submodule.sh | |
parent | a82af0543a016e341f1efd689a60617b1029ae00 (diff) | |
download | git-1ae2e19a32729e21778b74f61794369203b58a1d.tar.gz |
submodule: show full path in error message
When --recursive was added to "submodule foreach" in commit 15fc56a (git
submodule foreach: Add --recursive to recurse into nested submodules,
2009-08-19), the error message when the script returns a non-zero status
was not updated to contain $prefix to show the full path. Fix this.
Signed-off-by: John Keeping <john@keeping.me.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-x | git-submodule.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 79bfaac9d4..bdb438ba4f 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -485,7 +485,7 @@ cmd_foreach() cmd_foreach "--recursive" "$@" fi ) <&3 3<&- || - die "$(eval_gettext "Stopping at '\$sm_path'; script returned non-zero status.")" + die "$(eval_gettext "Stopping at '\$prefix\$sm_path'; script returned non-zero status.")" fi done } |