Skip to content
This repository was archived by the owner on Feb 12, 2019. It is now read-only.

Commit 40d54cd

Browse files
committed
vendor: update go-git to master and add push optimizations
Compared to the v4 branch we were using before, master branch seems to fix a few bugs and bring the time for pushing the KBFS repo from hours to about 25 minutes. With the following optimizations, I got that time down to less than 3 minutes. * src-d/go-git#564 * src-d/go-git#565 I suspect there are still lots more optimizations that can be done. I don't think there are many users of Push in this project.
1 parent 5b5246c commit 40d54cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+13781
-819
lines changed

kbfsgit/runner.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ func (r *runner) handleFetchBatch(ctx context.Context, args [][]string) (
354354

355355
remote, err := repo.CreateRemote(&gogitcfg.RemoteConfig{
356356
Name: localRepoRemoteName,
357-
URL: r.gitDir,
357+
URLs: []string{r.gitDir},
358358
})
359359

360360
for _, fetch := range args {
@@ -442,7 +442,7 @@ func (r *runner) handlePushBatch(ctx context.Context, args [][]string) (
442442

443443
remote, err := repo.CreateRemote(&gogitcfg.RemoteConfig{
444444
Name: localRepoRemoteName,
445-
URL: r.gitDir,
445+
URLs: []string{r.gitDir},
446446
})
447447

448448
results := make(map[string]error, len(args))

vendor/github.com/jbenet/go-context/LICENSE

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/jbenet/go-context/io/ctxio.go

+120
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mitchellh/go-homedir/LICENSE

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mitchellh/go-homedir/README.md

+14
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/mitchellh/go-homedir/homedir.go

+137
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/text/LICENSE

+27
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/golang.org/x/text/PATENTS

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)