X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-checkout.sh;h=3bbd1117739b02572aece86030bb9f02f3110d34;hb=2111168f314ac4f53932b8bbb16191a3855f5b6f;hp=1219ea0b0e837b0cdd68fa909cd5151273dd70cf;hpb=104f3e03c03a83617bac9d120b5e536c5f29d9ef;p=git.git diff --git a/git-checkout.sh b/git-checkout.sh index 1219ea0b..3bbd1117 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -80,7 +80,7 @@ then # 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 -- "$@"