Skip to content

Commit 1ae2e19

Browse files
johnkeepinggitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent a82af05 commit 1ae2e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ cmd_foreach()
485485
cmd_foreach "--recursive" "$@"
486486
fi
487487
) <&3 3<&- ||
488-
die "$(eval_gettext "Stopping at '\$sm_path'; script returned non-zero status.")"
488+
die "$(eval_gettext "Stopping at '\$prefix\$sm_path'; script returned non-zero status.")"
489489
fi
490490
done
491491
}

0 commit comments

Comments
 (0)