From ff0eae287d92544095d58ec85f3646da74d8b496 Mon Sep 17 00:00:00 2001 From: abejgonzalez Date: Tue, 15 Feb 2022 23:16:09 -0800 Subject: [PATCH] Update check-commit.sh in CI to properly checkout remote branches --- .github/scripts/check-commit.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/scripts/check-commit.sh b/.github/scripts/check-commit.sh index e646fcb8..ec9e73db 100755 --- a/.github/scripts/check-commit.sh +++ b/.github/scripts/check-commit.sh @@ -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:]]*")