Skip to content

Commit

Permalink
"./install.sh update" should use tags
Browse files Browse the repository at this point in the history
Instead of always syncing to the head, this command should sync to the latest tag. This will make it a bit easier to merge work back into master without exposing it to users as a byproduct.
  • Loading branch information
Kaiede authored Aug 19, 2018
1 parent b543925 commit af40827
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
# Grab Latest Git State
#
function update_source() {
echo "Fetching Latest Source..."
git pull
echo "Fetching Latest Source..."
git fetch
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "Updating to $LATEST_TAG..."
git checkout $LATEST_TAG
}

#
Expand Down

0 comments on commit af40827

Please sign in to comment.