mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
fix(be): bug with installation and deletion git pk
This commit is contained in:
parent
32a6c952ce
commit
d2790162eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user