4 Commits
Author SHA1 Message Date
junv 6475454741 remove temp echo message 2016-03-06 22:03:27 +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
2 changed files with 4 additions and 12 deletions
-10
View File
@@ -9,13 +9,3 @@ 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
repo_url() {
if [[ "$GOOGLE" == "true" ]]; then
return GOOGLE_REPO_URL
else
return GITHUB_REPO_URL
fi
}
+4 -2
View File
@@ -32,11 +32,13 @@ read_command_line "$@"
echo
display_message "gvm gos (available)"
echo
go_repo_url=repo_url
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
for version in $versions; do
if [[ "$tag_filter" == "release" ]]; then
if [[ "${version:0:7}" == "release" ]]; then