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

Commit dbda1bc

Browse files
committedFeb 20, 2019
Fixed path to be used fully through join and removed unused variable.
1 parent db6c41c commit dbda1bc

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed
 

‎_examples/common_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func tempFolder() string {
7272
func packageFolder() string {
7373
return filepath.Join(
7474
build.Default.GOPATH,
75-
"src", "gopkg.in/src-d/go-git.v4",
75+
"src", "gopkg.in", "src-d", "go-git.v4",
7676
)
7777
}
7878

‎plumbing/transport/ssh/auth_method.go

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,11 @@ import (
1313
"gopkg.in/src-d/go-git.v4/plumbing/transport"
1414

1515
"github.com/mitchellh/go-homedir"
16-
"github.com/xanzy/ssh-agent"
16+
sshagent "github.com/xanzy/ssh-agent"
1717
"golang.org/x/crypto/ssh"
1818
"golang.org/x/crypto/ssh/knownhosts"
1919
)
2020

21-
const DefaultUsername = "git"
22-
2321
// AuthMethod is the interface all auth methods for the ssh client
2422
// must implement. The clientConfig method returns the ssh client
2523
// configuration needed to establish an ssh connection.
@@ -271,7 +269,7 @@ func getDefaultKnownHostsFiles() ([]string, error) {
271269
}
272270

273271
return []string{
274-
filepath.Join(homeDirPath, "/.ssh/known_hosts"),
272+
filepath.Join(homeDirPath, ".ssh", "known_hosts"),
275273
"/etc/ssh/ssh_known_hosts",
276274
}, nil
277275
}

0 commit comments

Comments
 (0)
Failed to load comments.