mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Validate Git completion
This commit is contained in:
parent
5055366bc2
commit
ad72568e35
@ -12,7 +12,8 @@
|
|||||||
- No new Star Trek references.
|
- No new Star Trek references.
|
||||||
|
|
||||||
#### 1.7.4
|
#### 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.
|
- Slightly less verbose in some places to make up for being more verbose in others.
|
||||||
- [DONE] has become [ OK ] in output.
|
- [DONE] has become [ OK ] in output.
|
||||||
- Tighten up verbage of some status messages.
|
- Tighten up verbage of some status messages.
|
||||||
|
@ -114,15 +114,15 @@ function update_gs {
|
|||||||
MESSAGE="Requires GitHub Installation"
|
MESSAGE="Requires GitHub Installation"
|
||||||
echo_warn
|
echo_warn
|
||||||
exit_nochange
|
exit_nochange
|
||||||
elif [ $GIT_CHECK == "HEAD" ]
|
|
||||||
then
|
|
||||||
git fetch --all
|
|
||||||
git reset --hard origin/${BRANCH}
|
|
||||||
else
|
else
|
||||||
MESSAGE="This might break..."
|
MESSAGE="This might break..."
|
||||||
echo_warn
|
echo_warn
|
||||||
git fetch --all
|
MESSAGE="Updating Cache"
|
||||||
git reset --hard origin/${BRANCH}
|
echo_stat
|
||||||
|
git fetch --all >/dev/null 2>&1
|
||||||
|
error_validate
|
||||||
|
git reset --hard origin/${BRANCH} >/dev/null 2>&1
|
||||||
|
error_validate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user