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
|
if [ $FULLBLOG_DOMAIN_NAME ]; then
|
||||||
FULLBLOG_DOMAIN_NAME='blog.local'
|
FULLBLOG_DOMAIN_NAME='blog.local'
|
||||||
fi
|
fi
|
||||||
if [ $GIT_DOMAIN_NAME ]; then
|
|
||||||
GIT_DOMAIN_NAME='git.local'
|
|
||||||
fi
|
|
||||||
if [ $WIKI_DOMAIN_NAME ]; then
|
if [ $WIKI_DOMAIN_NAME ]; then
|
||||||
WIKI_DOMAIN_NAME='wiki.local'
|
WIKI_DOMAIN_NAME='wiki.local'
|
||||||
fi
|
fi
|
||||||
if [ $DEFAULT_DOMAIN_NAME ]; then
|
if [ $DEFAULT_DOMAIN_NAME ]; then
|
||||||
DEFAULT_DOMAIN_NAME="${PROJECT_NAME}.local"
|
DEFAULT_DOMAIN_NAME="${PROJECT_NAME}.local"
|
||||||
fi
|
fi
|
||||||
|
if [ $GIT_DOMAIN_NAME ]; then
|
||||||
|
GIT_DOMAIN_NAME='git.local'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function set_repo_commit {
|
function set_repo_commit {
|
||||||
|
@ -6685,6 +6685,10 @@ function install_gogs {
|
||||||
exit 85482
|
exit 85482
|
||||||
fi
|
fi
|
||||||
cd $GOPATH/src/github.com/gogits/gogs
|
cd $GOPATH/src/github.com/gogits/gogs
|
||||||
|
|
||||||
|
# install
|
||||||
|
go get -u ./...
|
||||||
|
|
||||||
git checkout $GOGS_COMMIT -b $GOGS_COMMIT
|
git checkout $GOGS_COMMIT -b $GOGS_COMMIT
|
||||||
if ! grep -q "Gogs commit" $COMPLETION_FILE; then
|
if ! grep -q "Gogs commit" $COMPLETION_FILE; then
|
||||||
echo "Gogs commit:$GOGS_COMMIT" >> $COMPLETION_FILE
|
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
|
sed -i "s/Gogs commit.*/Gogs commit:$GOGS_COMMIT/g" $COMPLETION_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# install
|
|
||||||
go get -u ./...
|
|
||||||
go build
|
go build
|
||||||
if [ ! "$?" = "0" ]; then
|
if [ ! "$?" = "0" ]; then
|
||||||
echo $'install_gogs: go build failed'
|
echo $'install_gogs: go build failed'
|
||||||
|
|
Loading…
Reference in New Issue