Validate Git completion

This commit is contained in:
Michael Stanclift 2020-05-30 22:42:37 -05:00
parent 5055366bc2
commit ad72568e35
2 changed files with 8 additions and 7 deletions

View File

@ -12,7 +12,8 @@
- No new Star Trek references.
#### 1.7.4
- (**Featureish**) `./gravity-sync.sh dev` will now toggle dev flag on/off. No `touch` required, although it still works that way under the covers. Improvement of methods added in 1.7.2.
- `./gravity-sync.sh dev` will now toggle dev flag on/off. No `touch` required, although it still works that way under the covers. Improvement of methods added in 1.7.2.
- `./gravity-sync.sh dev` performs better error handling.
- Slightly less verbose in some places to make up for being more verbose in others.
- [DONE] has become [ OK ] in output.
- Tighten up verbage of some status messages.

View File

@ -114,15 +114,15 @@ function update_gs {
MESSAGE="Requires GitHub Installation"
echo_warn
exit_nochange
elif [ $GIT_CHECK == "HEAD" ]
then
git fetch --all
git reset --hard origin/${BRANCH}
else
MESSAGE="This might break..."
echo_warn
git fetch --all
git reset --hard origin/${BRANCH}
MESSAGE="Updating Cache"
echo_stat
git fetch --all >/dev/null 2>&1
error_validate
git reset --hard origin/${BRANCH} >/dev/null 2>&1
error_validate
fi
exit