This commit is contained in:
cdle 2021-08-19 08:53:50 +08:00
parent b53a4a7ca8
commit a6ce8c895b

View File

@ -59,7 +59,7 @@ func initVersion() {
func Update(msgs ...interface{}) error {
sendMessagee("小滴滴开始拉取代码", msgs...)
rtn, err := exec.Command("sh", "-c", "cd "+ExecPath+" && git pull").Output()
rtn, err := exec.Command("sh", "-c", "cd "+ExecPath+" && git stash && git pull").Output()
if err != nil {
return err
}