Skip to content

Commit

Permalink
ensure we fetch master before getting the latest commit (video-dev#2319)
Browse files Browse the repository at this point in the history
* ensure we fetch master before getting the latest commit

* remove pointless line
  • Loading branch information
tjenkinson authored and John Bartos committed Jul 26, 2019
1 parent 8a687b2 commit 2bf8ec6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/deploy-netlify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ set -e

# GITHUB_TOKEN and NETLIFY_ACCESS_TOKEN set in travis

# ensure we have fetched origin/master
git remote set-branches origin master
git fetch

currentCommit=$(git rev-parse HEAD)
masterLatestCommit=$(git rev-parse master)
masterLatestCommit=$(git rev-parse origin/master)

id=$currentCommit
root="./netlify"
Expand Down

0 comments on commit 2bf8ec6

Please sign in to comment.