Skip to content

Commit

Permalink
Fetch the specific branch requested
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-Wilson committed Jul 9, 2024
1 parent 4c78892 commit 95fb275
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/submodule-pin-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ for mod in `git submodule --quiet foreach 'echo $name'`; do
branch=origin/HEAD
if [[ -v exceptions[$mod] ]]; then
branch=${exceptions[$mod]}
git -C $mod fetch
git -C $mod branch -r
git -C $mod fetch `echo $branch | tr "/" " "`
fi

if ! git -C $mod merge-base --is-ancestor HEAD $branch; then
Expand Down

0 comments on commit 95fb275

Please sign in to comment.