gogs known working commit

This commit is contained in:
Bob Mottram 2015-12-16 12:22:49 +00:00
parent 08d28a34d6
commit c82e56908f
1 changed files with 11 additions and 2 deletions

View File

@ -195,7 +195,7 @@ GIT_DOMAIN_NAME=
GIT_CODE=
GIT_DOMAIN_REPO="https://github.com/gogits/gogs.git"
GIT_ADMIN_PASSWORD=
GOGS_COMMIT='ea375c0dcca118c8ac3c48ba569b025836ad5ccf'
GOGS_COMMIT='efea642d6cf419c9587d44b95ff2bc04e89f7bfe'
# Domain name for Owncloud installation
OWNCLOUD_DOMAIN_NAME=
@ -6123,11 +6123,20 @@ function install_gogs {
cd $GOPATH/src/github.com/gogits/gogs
git stash
git checkout master
git pull
git pull origin master
git checkout $GOGS_COMMIT -b $GOGS_COMMIT
if [ ! "$?" = "0" ]; then
git checkout $GOGS_COMMIT
fi
sed -i "s/Gogs commit.*/Gogs commit:$GOGS_COMMIT/g" $COMPLETION_FILE
go get -u ./...
if [ ! "$?" = "0" ]; then
exit 52792
fi
go build
if [ ! "$?" = "0" ]; then
exit 36226
fi
systemctl restart gogs
fi
else