Browse Source

fix pull res

pikastech 3 years ago
parent
commit
4e14ba289c
1 changed files with 1 additions and 4 deletions
  1. 1 4
      tools/pikaPackageManager/main.go

+ 1 - 4
tools/pikaPackageManager/main.go

@@ -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)