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

Commit f3fb7e6

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 b716003 commit f3fb7e6

Some content is hidden

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

65 files changed

+1964
-820
lines changed

kbfsgit/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ func (r *runner) handleFetchBatch(ctx context.Context, args [][]string) (
351351

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

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

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

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

vendor/gopkg.in/src-d/go-git.v4/COMPATIBILITY.md

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-git.v4/README.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-git.v4/config/config.go

Lines changed: 47 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-git.v4/options.go

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-git.v4/plumbing/cache/common.go

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/gopkg.in/src-d/go-git.v4/plumbing/cache/object.go

Lines changed: 0 additions & 68 deletions
This file was deleted.

vendor/gopkg.in/src-d/go-git.v4/plumbing/cache/object_lru.go

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)