mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
fix pull res
This commit is contained in:
parent
5dcb727e1a
commit
4e14ba289c
@ -282,10 +282,7 @@ func updatePikascript(path string) *git.Repository {
|
||||
repo, _ := git.PlainOpen(path)
|
||||
w, _ := repo.Worktree()
|
||||
fmt.Println("Updating pikascript...")
|
||||
err = w.Pull(&git.PullOptions{RemoteName: "origin"})
|
||||
if err != nil {
|
||||
println("Error repository is broken.")
|
||||
}
|
||||
w.Pull(&git.PullOptions{RemoteName: "origin"})
|
||||
ref, _ := repo.Head()
|
||||
commit, _ := repo.CommitObject(ref.Hash())
|
||||
fmt.Println(commit)
|
||||
|
Loading…
x
Reference in New Issue
Block a user