aboutsummaryrefslogtreecommitdiffstats
path: root/_examples/remotes
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-07-24 13:34:40 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2017-07-24 13:34:40 +0200
commit460a7278e6fff2d58300e1855ef8429fec374fa0 (patch)
tree1ad85aa138fb9e3d9e1eefc3b3de40f5f2e16265 /_examples/remotes
parent4ee12ab91dc23ef1f6f04a6326ead904f21baf7b (diff)
downloadgo-git-460a7278e6fff2d58300e1855ef8429fec374fa0.tar.gz
move Repository.Pull to Worktree.Pull
Diffstat (limited to '_examples/remotes')
-rw-r--r--_examples/remotes/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/_examples/remotes/main.go b/_examples/remotes/main.go
index 31c5cc5..90817dc 100644
--- a/_examples/remotes/main.go
+++ b/_examples/remotes/main.go
@@ -42,9 +42,9 @@ func main() {
fmt.Println(r)
}
- // Pull using the create repository
- Info("git pull example")
- err = r.Pull(&git.PullOptions{
+ // Fetch using the new remote
+ Info("git fetch example")
+ err = r.Fetch(&git.FetchOptions{
RemoteName: "example",
})