src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.9k stars 540 forks source link

Issue while performing git pull #1157

Open sourabhkalmadykloud9 opened 5 years ago

sourabhkalmadykloud9 commented 5 years ago

I am getting this err("worktree contains unstaged changes") when I use w.Pull(&git.PullOptions{Auth: auth, RemoteName: "origin",ReferenceName: plumbing.ReferenceName("refs/heads/gittrial"), SingleBranch: true}) Next time when I run the same code I get this err("already up-to-date"). I have manually checked the log, and found that the it has pulled the latest commit but not reflecting the changes in file.