checkout after go get
This commit is contained in:
parent
b2cd70d820
commit
5632e88ef6
|
@ -1424,15 +1424,15 @@ function set_default_onion_domains {
|
|||
if [ $FULLBLOG_DOMAIN_NAME ]; then
|
||||
FULLBLOG_DOMAIN_NAME='blog.local'
|
||||
fi
|
||||
if [ $GIT_DOMAIN_NAME ]; then
|
||||
GIT_DOMAIN_NAME='git.local'
|
||||
fi
|
||||
if [ $WIKI_DOMAIN_NAME ]; then
|
||||
WIKI_DOMAIN_NAME='wiki.local'
|
||||
fi
|
||||
if [ $DEFAULT_DOMAIN_NAME ]; then
|
||||
DEFAULT_DOMAIN_NAME="${PROJECT_NAME}.local"
|
||||
fi
|
||||
if [ $GIT_DOMAIN_NAME ]; then
|
||||
GIT_DOMAIN_NAME='git.local'
|
||||
fi
|
||||
}
|
||||
|
||||
function set_repo_commit {
|
||||
|
@ -6685,6 +6685,10 @@ function install_gogs {
|
|||
exit 85482
|
||||
fi
|
||||
cd $GOPATH/src/github.com/gogits/gogs
|
||||
|
||||
# install
|
||||
go get -u ./...
|
||||
|
||||
git checkout $GOGS_COMMIT -b $GOGS_COMMIT
|
||||
if ! grep -q "Gogs commit" $COMPLETION_FILE; then
|
||||
echo "Gogs commit:$GOGS_COMMIT" >> $COMPLETION_FILE
|
||||
|
@ -6692,8 +6696,6 @@ function install_gogs {
|
|||
sed -i "s/Gogs commit.*/Gogs commit:$GOGS_COMMIT/g" $COMPLETION_FILE
|
||||
fi
|
||||
|
||||
# install
|
||||
go get -u ./...
|
||||
go build
|
||||
if [ ! "$?" = "0" ]; then
|
||||
echo $'install_gogs: go build failed'
|
||||
|
|
Loading…
Reference in New Issue