Adjust to ls-tree --full-name when run from a subdirectory.
[git.git] / git-checkout.sh
index 1219ea0..3bbd111 100755 (executable)
@@ -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 -- "$@"