aboutsummaryrefslogtreecommitdiffstats
path: root/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/common_test.go b/common_test.go
index 612afd1..d8647ff 100644
--- a/common_test.go
+++ b/common_test.go
@@ -9,7 +9,7 @@ import (
. "gopkg.in/check.v1"
"gopkg.in/src-d/go-git.v2/clients/common"
- "gopkg.in/src-d/go-git.v2/internal"
+ "gopkg.in/src-d/go-git.v2/core"
)
func Test(t *testing.T) { TestingT(t) }
@@ -21,7 +21,7 @@ func (s *MockGitUploadPackService) Connect(url common.Endpoint) error {
}
func (s *MockGitUploadPackService) Info() (*common.GitUploadPackInfo, error) {
- hash := internal.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5")
+ hash := core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5")
line := "6ecf0ef2c2dffb796033e5a02219af86ec6584e5 HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow no-progress include-tag multi_ack_detailed no-done symref=HEAD:refs/heads/master agent=git/2:2.4.8~dbussink-fix-enterprise-tokens-compilation-1167-gc7006cf"
values, _ := url.ParseQuery(strings.Replace(line, " ", "&", -1))
@@ -29,7 +29,7 @@ func (s *MockGitUploadPackService) Info() (*common.GitUploadPackInfo, error) {
return &common.GitUploadPackInfo{
Capabilities: common.Capabilities(values),
Head: "refs/heads/master",
- Refs: map[string]internal.Hash{"refs/heads/master": hash},
+ Refs: map[string]core.Hash{"refs/heads/master": hash},
}, nil
}