mirror of https://github.com/astral-sh/ruff
Remove unshallow
This commit is contained in:
parent
f392791b69
commit
bf0d645692
|
|
@ -378,7 +378,7 @@ jobs:
|
||||||
- name: Check main branch
|
- name: Check main branch
|
||||||
run: |
|
run: |
|
||||||
# Fetch the main branch since a shallow checkout is used by default
|
# Fetch the main branch since a shallow checkout is used by default
|
||||||
git fetch origin main --unshallow
|
git fetch origin main
|
||||||
git branch --contains 0c030b5bf31e425cb6070db7386243eca6dbd8f1
|
git branch --contains 0c030b5bf31e425cb6070db7386243eca6dbd8f1
|
||||||
if ! git branch --contains 0c030b5bf31e425cb6070db7386243eca6dbd8f1 | grep -E '(^|\s)main$'; then
|
if ! git branch --contains 0c030b5bf31e425cb6070db7386243eca6dbd8f1 | grep -E '(^|\s)main$'; then
|
||||||
echo "The specified sha is not on the main branch" >&2
|
echo "The specified sha is not on the main branch" >&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue