fix(be): bug with installation and deletion git pk

This commit is contained in:
Denis Gukov 2022-02-07 11:18:07 +05:00
parent 32a6c952ce
commit d2790162eb

View File

@ -65,6 +65,13 @@ func (r GitRepository) run(targetDir GitRepositoryDirType, args ...string) error
}
func (r GitRepository) output(targetDir GitRepositoryDirType, args ...string) (out string, err error) {
err = r.Repository.SSHKey.Install(db.AccessKeyRoleGit)
if err != nil {
return
}
defer r.Repository.SSHKey.Destroy()
bytes, err := r.makeCmd(targetDir, args...).Output()
if err != nil {
return