2 Commits
Author SHA1 Message Date
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 3 additions and 8 deletions
+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
}
+1 -1
View File
@@ -35,7 +35,7 @@ echo
go_repo_url=repo_url
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