let it be git-show friendly

This commit is contained in:
Vital A Pi 2026-10-09 13:51:29 +03:00
commit 1ab0381b17

View file

@ -35,5 +35,5 @@ runs:
git init --object-format=${{ inputs.git_object_format }} -b main . git init --object-format=${{ inputs.git_object_format }} -b main .
git remote add origin "${{ inputs.server_url }}/${{ inputs.repository }}.git" git remote add origin "${{ inputs.server_url }}/${{ inputs.repository }}.git"
export AH="Authorization: Basic $(printf 'x-access-token:${{ inputs.token }}' | base64 | tr -d '\n')" export AH="Authorization: Basic $(printf 'x-access-token:${{ inputs.token }}' | base64 | tr -d '\n')"
git --config-env=http.extraheader=AH fetch --depth 1 origin "${{ inputs.sha }}" git --config-env=http.extraheader=AH fetch --depth 2 origin "${{ inputs.sha }}"
git reset --hard FETCH_HEAD git reset --hard FETCH_HEAD