aboutsummaryrefslogtreecommitdiffstats
path: root/clients/common/common.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-10-26 01:22:54 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2015-10-26 01:22:54 +0100
commit688e802814f791a8723874dc88437bd8d140e103 (patch)
treeaeaf5e435e5802d9c8ae855a88128a49bc9768c8 /clients/common/common.go
parent9a44cd8ccff143a112436c38bfe5581e74b68f07 (diff)
downloadgo-git-688e802814f791a8723874dc88437bd8d140e103.tar.gz
objects: using readers from internal.Object
Diffstat (limited to 'clients/common/common.go')
-rw-r--r--clients/common/common.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/clients/common/common.go b/clients/common/common.go
index 5da0570..4204cb7 100644
--- a/clients/common/common.go
+++ b/clients/common/common.go
@@ -6,8 +6,10 @@ import (
"net/url"
"strings"
- "gopkg.in/sourcegraph/go-vcsurl.v1"
"gopkg.in/src-d/go-git.v2/formats/pktline"
+ "gopkg.in/src-d/go-git.v2/internal"
+
+ "gopkg.in/sourcegraph/go-vcsurl.v1"
)
const GitUploadPackServiceName = "git-upload-pack"
@@ -74,7 +76,7 @@ func (r Capabilities) SymbolicReference(sym string) string {
}
type RemoteHead struct {
- Id string
+ Id internal.Hash
Name string
}
@@ -134,12 +136,12 @@ func (r *GitUploadPackInfo) getRemoteHead(line string) *RemoteHead {
return nil
}
- return &RemoteHead{parts[0], parts[1]}
+ return &RemoteHead{internal.NewHash(parts[0]), parts[1]}
}
type GitUploadPackRequest struct {
- Want []string
- Have []string
+ Want []internal.Hash
+ Have []internal.Hash
}
func (r *GitUploadPackRequest) String() string {