1
0
mirror of https://github.com/beego/bee.git synced 2024-12-22 10:00:50 +00:00

fix the bee path

This commit is contained in:
wangle 2020-08-02 17:00:29 +08:00 committed by askuy
parent 9c63635169
commit 82e40f9010

View File

@ -512,7 +512,10 @@ func NoticeUpdateBee() {
}
func newVersion() {
workPath := GetBeeWorkPath()
hs, _, workPath := SearchGOPATHs(config.GitRemotePath)
if hs == false {
beeLogger.Log.Warn("Fail to open repository")
}
repo, err := git.OpenRepository(workPath)
if err != nil {
beeLogger.Log.Fatalf("Fail to open repository, err: %s", err)