Update check-commit.sh in CI to properly checkout remote branches
This commit is contained in:
2
.github/scripts/check-commit.sh
vendored
2
.github/scripts/check-commit.sh
vendored
@@ -25,6 +25,8 @@ search_submodule() {
|
||||
# Initialize submodule and get the hashes
|
||||
git submodule update --init $dir/$submodule
|
||||
git -C $dir/$submodule fetch --unshallow
|
||||
git -C $dir/$submodule config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
|
||||
git -C $dir/$submodule fetch origin
|
||||
|
||||
status=$(git submodule status)
|
||||
hash=$(echo "$status" | grep "$dir.*$submodule " | awk '{print$1}' | grep -o "[[:alnum:]]*")
|
||||
|
||||
Reference in New Issue
Block a user