Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Very slow for large repos #505

Closed
strin opened this issue Jul 25, 2017 · 2 comments
Closed

Very slow for large repos #505

strin opened this issue Jul 25, 2017 · 2 comments
Assignees

Comments

@strin
Copy link

strin commented Jul 25, 2017

options := git.PushOptions{
		RemoteName: remoteName,
		Auth:       auth,
		RefSpecs: []config.RefSpec{
			config.RefSpec(fmt.Sprintf("refs/heads/%s:refs/heads/%s", hash, hash)),
		},
	}

err = repo.GitRepo.Push(&options)

The time for second push should be significantly less than the first push. But it seems go-git is pushing everything again.

@strin
Copy link
Author

strin commented Jul 25, 2017

To test, use this repo: https://github.com/dummy-ai/models

@smola
Copy link
Collaborator

smola commented Jul 27, 2017

@strin Thank you for reporting this. Indeed, a lot of objects were being pushed when they shouldn't. This should be fixed by PR #516

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants