Skip to content

Commit 00d16d7

Browse files
committed
fix: commit fetching bug in scripts/update_firebase_spm_dependency.sh
1 parent bd9d442 commit 00d16d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/update_firebase_spm_dependency.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ case "$MODE" in
6565
REPLACEMENT_REGEX="\1kind = branch;\n\t\t\t\tbranch = \"$VERSION\";\2"
6666
;;
6767
--prerelease)
68-
COMMIT_HASH=$(git ls-remote https://github.com/firebase/firebase-ios-sdk.git main | cut -f1)
68+
COMMIT_HASH=$(git ls-remote https://github.com/firebase/firebase-ios-sdk.git refs/heads/main | cut -f1)
6969
if [[ -z "$COMMIT_HASH" ]]; then
7070
echo "Error: Failed to get remote revision for main branch."
7171
exit 1

0 commit comments

Comments
 (0)