Skip to content

Commit

Permalink
submodule: show full path in error message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Keeping authored and Junio C Hamano committed Jun 17, 2013
1 parent a82af05 commit 1ae2e19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1ae2e19

Please sign in to comment.