mirror of
https://github.com/beego/bee.git
synced 2024-11-21 23:50:54 +00:00
fix the bee path
This commit is contained in:
parent
e539c34ea0
commit
40a90af5be
@ -512,7 +512,10 @@ func NoticeUpdateBee() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newVersion() {
|
func newVersion() {
|
||||||
workPath := GetBeeWorkPath()
|
hs, _, workPath := SearchGOPATHs(config.GitRemotePath)
|
||||||
|
if hs == false {
|
||||||
|
beeLogger.Log.Warn("Fail to open repository")
|
||||||
|
}
|
||||||
repo, err := git.OpenRepository(workPath)
|
repo, err := git.OpenRepository(workPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
beeLogger.Log.Fatalf("Fail to open repository, err: %s", err)
|
beeLogger.Log.Fatalf("Fail to open repository, err: %s", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user