Browse Source

Use ssh user specified in the config for Git auth

Brendan Abolivier 6 years ago
parent
commit
175f05e91f
Signed by: Brendan Abolivier <contact@brendanabolivier.com> GPG key ID: 8EF1500759F70623
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/git/git.go

+ 1
- 1
src/git/git.go View File

@@ -59,7 +59,7 @@ func getAuth(user string, privateKeyPath string) (*gitssh.PublicKeys, error) {
59 59
 		return nil, err
60 60
 	}
61 61
 
62
-	return &gitssh.PublicKeys{User: "git", Signer: signer}, nil
62
+	return &gitssh.PublicKeys{User: user, Signer: signer}, nil
63 63
 }
64 64
 
65 65
 // clone clones a Git repository into a given path, using a given auth.