Skip to content

Commit

Permalink
Improve memory footprint for large git index
Browse files Browse the repository at this point in the history
  • Loading branch information
coufalja committed Jul 16, 2018
1 parent 029d214 commit a07ce59
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 43 deletions.
76 changes: 38 additions & 38 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@
name = "k8s.io/api"
version = "kubernetes-1.9.1"

[[constraint]]
name = "github.com/go-resty/resty"
version = "1.3.0"

[[constraint]]
name = "github.com/spf13/cobra"
version = "0.0.2"

[[constraint]]
name = "gopkg.in/src-d/go-git.v4"
version = "v4.3.1"
version = "v4.5.0"
1 change: 1 addition & 0 deletions pkg/fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ func (f *fetcher) Fetch() (*object.Commit, error) {
r, err = git.PlainClone(f.directory, false, &git.CloneOptions{
URL: f.url,
Auth: f.auth,
NoCheckout: true,
ReferenceName: plumbing.ReferenceName(fmt.Sprintf("refs/heads/%s", f.branch)),
})
if err != nil {
Expand Down

0 comments on commit a07ce59

Please sign in to comment.