Skip to content

Commit 2d8d9dd

Browse files
committed
feat(brew-bump): add check for remote upstream
1 parent 14f6bc1 commit 2d8d9dd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ci/steps/brew-bump.sh

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ main() {
4141
echo "Adding Homebrew/homebrew-core as $(upstream)"
4242
git remote add upstream https://github.com/Homebrew/homebrew-core.git
4343

44+
# Make sure the git remote step is successful
45+
if ! git config remote.upstream.url > /dev/null; then
46+
echo "git remote add upstream failed."
47+
echo "Could not find upstream in list of remotes."
48+
git remote -v
49+
exit 1
50+
fi
51+
4452
echo "Fetching upstream Homebrew/hombrew-core commits"
4553
git fetch upstream
4654

0 commit comments

Comments
 (0)