浏览代码

Use ssh user specified in the config for Git auth

父节点
当前提交
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.