Skip to content

Commit 356a5a4

Browse files
committed
Make git fetch command in boostrap work also if the repository is already a complete clone
1 parent d86881d commit 356a5a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/actions/bootstrap/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ runs:
1616
# Ensure we fetch all tags
1717
- shell: bash
1818
run: |
19-
git fetch --prune --unshallow --tags
19+
if [ -f .git/shallow ]; then
20+
git fetch --prune --unshallow --tags
21+
else
22+
git fetch --prune --tags
23+
fi
2024
git tag --list
2125
2226
- name: Git config

0 commit comments

Comments
 (0)