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>
John Keeping committed
Jun 16, 2013 at 15:18 UTC
1ae2e19a32729e21778b74f61794369203b58a1d
1 file changed
+1
-1
git-submodule.sh
+1
-1
@@ -485,7 +485,7 @@ cmd_foreach()
485
cmd_foreach "--recursive" "$@"
486
fi
487
) <&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.")"
489
fi
490
done
491
}