mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-21 18:58:32 +00:00
fix branch check in CI (#5326)
Use explicit refs to avoid occasional issues with branch check reporting incorrectly that commit is not an ancestor of upstream head.
This commit is contained in:
parent
ad60ba027d
commit
bee0342f35
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -222,11 +222,11 @@ jobs:
|
||||
echo "Submodule '$file': '.gitmodules' lacks 'branch' entry"
|
||||
exit 2
|
||||
fi
|
||||
if ! error="$(git -C "$file" fetch -q origin "$branch")"; then
|
||||
if ! error="$(git -C "$file" fetch -q origin "+refs/heads/$branch:refs/remotes/origin/$branch")"; then
|
||||
echo "Submodule '$file': Failed to fetch '$branch': $error"
|
||||
exit 2
|
||||
fi
|
||||
if ! git -C "$file" merge-base --is-ancestor "$commit" "origin/$branch"; then
|
||||
if ! git -C "$file" merge-base --is-ancestor "$commit" "refs/remotes/origin/$branch"; then
|
||||
echo "Submodule '$file': '$commit' is not on '$branch'"
|
||||
exit 2
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user