4 Commits
Author SHA1 Message Date
Junv 23d74d510f bump verson to 1.0.35 2016-03-07 11:37:04 +08:00
junv cd26aff6f9 try to fix git url issue 2016-03-06 21:48:19 +08:00
junv 498fbe8ad3 update git repo url 2016-03-06 21:41:18 +08:00
junv aa144d900a update source url 2016-03-06 21:30:35 +08:00
3 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -1 +1 @@
1.0.30
1.0.35
+2 -7
View File
@@ -9,13 +9,8 @@ GREP_PATH=$(unalias grep &> /dev/null; which grep) || display_error "$GREP_ERROR
SORT_PATH=$(unalias sort &> /dev/null; which sort) || display_error "$SORT_ERROR" || return 1
HEAD_PATH=$(unalias head &> /dev/null; which head) || display_error "$HEAD_ERROR" || return 1
GITHUB_REPO_URL=https://github.com/golang/go.git
GOOGLE_REPO_URL=https://go.googlesource.com/go
GITHUB_REPO_URL=git@github.com:golang/go.git
repo_url() {
if [[ "$GOOGLE" == "true" ]]; then
return GOOGLE_REPO_URL
else
return GITHUB_REPO_URL
fi
return GITHUB_REPO_URL
}
+4 -2
View File
@@ -32,11 +32,13 @@ read_command_line "$@"
echo
display_message "gvm gos (available)"
echo
go_repo_url=repo_url
display_message "h=========="
go_repo_url=git@github.com:golang/go.git
versions=$(git ls-remote -t ${go_repo_url} | awk -F/ '{ print $NF }' | $SORT_PATH)
if [[ $? -ne 0 ]]; then
display_fatal "Failed to get version list from Google"
display_fatal "Failed to get version list from Github"
fi
display_message "~~~~~~~~~~~~~"
for version in $versions; do
if [[ "$tag_filter" == "release" ]]; then
if [[ "${version:0:7}" == "release" ]]; then