From: Junio C Hamano Date: Fri, 23 Dec 2005 22:10:16 +0000 (-0800) Subject: Adjust to ls-tree --full-name when run from a subdirectory. X-Git-Tag: v1.1.0~24^2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d0d14cf33d0e4446ed98b03ac5f81367d368e557;p=git.git Adjust to ls-tree --full-name when run from a subdirectory. A proposed change to show cwd relative paths by default from ls-tree when run from a subdirectory means we would need to give --full-name option to it. Signed-off-by: Junio C Hamano --- d0d14cf33d0e4446ed98b03ac5f81367d368e557 diff --cc git-checkout.sh index 1219ea0b,36308d22..3bbd1117 --- a/git-checkout.sh +++ b/git-checkout.sh @@@ -80,7 -79,7 +80,7 @@@ the # from a specific tree-ish; note that this is for # rescuing paths and is never meant to remove what # is not in the named tree-ish. -- git-ls-tree -r "$new" "$@" | ++ git-ls-tree --full-name -r "$new" "$@" | git-update-index --index-info || exit $? fi git-checkout-index -f -u -- "$@"