Skip to content

Commit 78b196c

Browse files
authored
Update post-build.sh to pull first
This change addresses: ! [rejected] dist -> dist (fetch first) error: failed to push some refs to 'https://github.com/googlemaps-samples/js-api-samples' hint: Updates were rejected because the remote contains work that you do not hint: have locally. This is usually caused by another repository pushing to hint: the same ref. If you want to integrate the remote changes, use hint: 'git pull' before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details. Error: Process completed with exit code 1.
1 parent b8ac54c commit 78b196c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

post-build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if ! git show-ref --verify --quiet refs/heads/dist; then
2424
git branch dist
2525
fi
2626

27+
git pull origin dist || true
28+
2729
# Checkout the dist branch
2830
git checkout dist || git checkout -b dist
2931

0 commit comments

Comments
 (0)