aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-09-12 11:20:29 +0200
committerGitHub <noreply@github.com>2017-09-12 11:20:29 +0200
commit8cb0215282c329d299d7d1d195abae4704981ba6 (patch)
treec499cf7ac25842c818d31c690bedb602940e13db /remote.go
parent032ec287ec496117dc85cd0e9c9224b2b17f5398 (diff)
parent841b62a321b3739381b48aeea7364126d1c54520 (diff)
downloadgo-git-8cb0215282c329d299d7d1d195abae4704981ba6.tar.gz
Merge pull request #586 from keybase/strib/commit-preorder-seen-gh-master
plumbing: the commit walker can skip externally-seen commits
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index fca539d..f6a6a50 100644
--- a/remote.go
+++ b/remote.go
@@ -615,7 +615,7 @@ func isFastForward(s storer.EncodedObjectStorer, old, new plumbing.Hash) (bool,
}
found := false
- iter := object.NewCommitPreorderIter(c, nil)
+ iter := object.NewCommitPreorderIter(c, nil, nil)
return found, iter.ForEach(func(c *object.Commit) error {
if c.Hash != old {
return nil