Skip to content

Commit 13ceff5

Browse files
committed
update and vendor deps
1 parent d38ade4 commit 13ceff5

574 files changed

Lines changed: 34786 additions & 18 deletions

File tree

Some content is hidden

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

Makefile

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
GIT2GO=github.com/libgit2/git2go
2-
31
build: get-dependencies
42
go build -o ./bin/git-get
53

64
install: get-dependencies
75
go install
86

97
get-dependencies:
10-
go get -u github.com/jwaldrip/odin
11-
go get -u github.com/jwaldrip/tint
12-
go get -u github.com/bgentry/speakeasy
13-
go get -u -d $(GIT2GO)
14-
cd $(GOPATH)/src/$(GIT2GO) && git submodule update --init && make install
8+
cd vendor/github.com/libgit2/git2go && git submodule update --init && make install

VERSION.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package main
22

3-
var version = "0.1.0"
3+
var version = "0.2.0"

callbacks.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func calcPercent(partial, total uint) uint {
1515
}
1616

1717
func buildCertificateCheckCallback(u *url.URL) git.CertificateCheckCallback {
18-
return func(cert *git.Certificate, valid bool, hostname string) int {
18+
return func(cert *git.Certificate, valid bool, hostname string) git.ErrorCode {
1919
if u.Scheme != "ssh" && valid == false {
2020
exitWithMsg("host key check failed for:", hostname)
2121
}
@@ -24,16 +24,16 @@ func buildCertificateCheckCallback(u *url.URL) git.CertificateCheckCallback {
2424
}
2525

2626
func buildCredentialsCallback(u *url.URL) git.CredentialsCallback {
27-
return func(url, usernameFromURL string, allowedTypes git.CredType) (int, *git.Cred) {
27+
return func(url, usernameFromURL string, allowedTypes git.CredType) (git.ErrorCode, *git.Cred) {
2828
i, cred := git.NewCredDefault()
2929

3030
if allowedTypes&git.CredTypeUserpassPlaintext != 0 {
3131
i, cred = git.NewCredUserpassPlaintext(getInput("username"), getMaskedInput("password"))
32-
return i, &cred
32+
return git.ErrorCode(i), &cred
3333
}
3434
if allowedTypes&git.CredTypeSshKey != 0 {
3535
i, cred = git.NewCredSshKeyFromAgent(u.User.Username())
36-
return i, &cred
36+
return git.ErrorCode(i), &cred
3737
}
3838
if allowedTypes&git.CredTypeSshCustom != 0 {
3939
exitWithMsg("custom ssh not implemented")
@@ -43,16 +43,16 @@ func buildCredentialsCallback(u *url.URL) git.CredentialsCallback {
4343
exitWithMsg("invalid cred type")
4444
}
4545

46-
return i, &cred
46+
return git.ErrorCode(i), &cred
4747
}
4848
}
4949

50-
func sidebandProgressCallback(str string) int {
50+
func sidebandProgressCallback(str string) git.ErrorCode {
5151
fmt.Printf("\rremote: %v", str)
5252
return 0
5353
}
5454

55-
func transferProgressCallback(stats git.TransferProgress) int {
55+
func transferProgressCallback(stats git.TransferProgress) git.ErrorCode {
5656
i.stats = stats
57-
return i.update()
57+
return git.ErrorCode(i.update())
5858
}

options.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,16 @@ import (
77
)
88

99
func cloneOptionsForURL(u *url.URL) *git.CloneOptions {
10-
remoteCallbacks := &git.RemoteCallbacks{
10+
remoteCallbacks := git.RemoteCallbacks{
1111
SidebandProgressCallback: sidebandProgressCallback,
1212
TransferProgressCallback: transferProgressCallback,
1313
CredentialsCallback: buildCredentialsCallback(u),
1414
CertificateCheckCallback: buildCertificateCheckCallback(u),
1515
}
1616
return &git.CloneOptions{
17+
FetchOptions: &git.FetchOptions{
18+
RemoteCallbacks: remoteCallbacks,
19+
},
1720
Bare: false,
18-
RemoteCallbacks: remoteCallbacks,
1921
}
2022
}

vendor/.gitkeep

Whitespace-only changes.

vendor/github.com/bgentry/speakeasy/LICENSE_WINDOWS

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

vendor/github.com/bgentry/speakeasy/Readme.md

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

vendor/github.com/bgentry/speakeasy/speakeasy.go

Lines changed: 47 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)