Skip to content
Snippets Groups Projects
Commit e33a611f authored by Jakob Fritz's avatar Jakob Fritz
Browse files

Unshallow repo if needed

parent c7db47a1
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,11 @@ jobs:
- name: check if fast-forward merge is possible
if: github.event_name == 'pull_request_target'
run: |
if $(git rev-parse --is-shallow-repository); then
git fetch --unshallow
else; then
git fetch
fi
echo "Checkout of ${{ github.base_ref }}"
git checkout "${{ github.base_ref }}"
echo "Git pull"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment