diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-19 14:15:34 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-07-19 14:15:34 +0200 |
commit | d851b90f5e832fa1edeb0d408bd56ed6c1fd5e7a (patch) | |
tree | ab25942ff243173a27979bc357d6bc516dda65d1 /repository.go | |
parent | 95bfc7e1c1b7101f2cd605cda58c1fb43d501d35 (diff) | |
download | go-git-d851b90f5e832fa1edeb0d408bd56ed6c1fd5e7a.tar.gz |
repository: allow push from shallow repositories
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/repository.go b/repository.go index 17f0dff..ec9f254 100644 --- a/repository.go +++ b/repository.go @@ -689,7 +689,7 @@ func (r *Repository) Log(o *LogOptions) (object.CommitIter, error) { return nil, err } - return object.NewCommitPreorderIter(commit), nil + return object.NewCommitPreorderIter(commit, nil), nil } // Tags returns all the References from Tags. This method returns all the tag @@ -918,7 +918,7 @@ func (r *Repository) ResolveRevision(rev plumbing.Revision) (*plumbing.Hash, err commit = c } case revision.CaretReg: - history := object.NewCommitPreorderIter(commit) + history := object.NewCommitPreorderIter(commit, nil) re := item.(revision.CaretReg).Regexp negate := item.(revision.CaretReg).Negate @@ -948,7 +948,7 @@ func (r *Repository) ResolveRevision(rev plumbing.Revision) (*plumbing.Hash, err commit = c case revision.AtDate: - history := object.NewCommitPreorderIter(commit) + history := object.NewCommitPreorderIter(commit, nil) date := item.(revision.AtDate).Date |