From 40a90af5be067fd396ed46bf9ba25668fdfb1a7c Mon Sep 17 00:00:00 2001 From: wangle <285273592@qq.com> Date: Sun, 2 Aug 2020 17:00:29 +0800 Subject: [PATCH] fix the bee path --- utils/utils.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/utils.go b/utils/utils.go index b2056e4..7ecb0b6 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -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)