commit
a2e6f1db85
|
@ -59,7 +59,7 @@ Alternatively, you can build the library manually first and then run the tests
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
||||||
M to the I to the T. See the LICENSE file if you've never seen a MIT license before.
|
M to the I to the T. See the LICENSE file if you've never seen an MIT license before.
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
-------
|
-------
|
||||||
|
|
2
blob.go
2
blob.go
|
@ -48,7 +48,7 @@ func (repo *Repository) CreateBlobFromBuffer(data []byte) (*Oid, error) {
|
||||||
var size C.size_t
|
var size C.size_t
|
||||||
|
|
||||||
// Go 1.6 added some increased checking of passing pointer to
|
// Go 1.6 added some increased checking of passing pointer to
|
||||||
// C, but its check depends on its expectations of waht we
|
// C, but its check depends on its expectations of what we
|
||||||
// pass to the C function, so unless we take the address of
|
// pass to the C function, so unless we take the address of
|
||||||
// its contents at the call site itself, it can fail when
|
// its contents at the call site itself, it can fail when
|
||||||
// 'data' is a slice of a slice.
|
// 'data' is a slice of a slice.
|
||||||
|
|
|
@ -108,7 +108,7 @@ func TestObjectOwner(t *testing.T) {
|
||||||
|
|
||||||
func checkShortId(t *testing.T, Id, shortId string) {
|
func checkShortId(t *testing.T, Id, shortId string) {
|
||||||
if len(shortId) < 7 || len(shortId) >= len(Id) {
|
if len(shortId) < 7 || len(shortId) >= len(Id) {
|
||||||
t.Fatalf("bad shortId lenght %d", len(shortId))
|
t.Fatalf("bad shortId length %d", len(shortId))
|
||||||
}
|
}
|
||||||
|
|
||||||
if !strings.HasPrefix(Id, shortId) {
|
if !strings.HasPrefix(Id, shortId) {
|
||||||
|
|
|
@ -19,10 +19,10 @@ type Repository struct {
|
||||||
Remotes RemoteCollection
|
Remotes RemoteCollection
|
||||||
// Submodules represents the collection of submodules and can
|
// Submodules represents the collection of submodules and can
|
||||||
// be used to add, remove and configure submodules in this
|
// be used to add, remove and configure submodules in this
|
||||||
// repostiory.
|
// repository.
|
||||||
Submodules SubmoduleCollection
|
Submodules SubmoduleCollection
|
||||||
// References represents the collection of references and can
|
// References represents the collection of references and can
|
||||||
// be used to create, remove or update refernces for this repository.
|
// be used to create, remove or update references for this repository.
|
||||||
References ReferenceCollection
|
References ReferenceCollection
|
||||||
// Notes represents the collection of notes and can be used to
|
// Notes represents the collection of notes and can be used to
|
||||||
// read, write and delete notes from this repository.
|
// read, write and delete notes from this repository.
|
||||||
|
|
Loading…
Reference in New Issue