瀏覽代碼

Use ssh user specified in the config for Git auth

Brendan Abolivier 6 年之前
父節點
當前提交
175f05e91f
簽署人: Brendan Abolivier <contact@brendanabolivier.com> GPG 金鑰 ID: 8EF1500759F70623
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/git/git.go

+ 1
- 1
src/git/git.go 查看文件

@@ -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.