From 13a3461cbf18f8e1c8dc38ff6f30de456faa0155 Mon Sep 17 00:00:00 2001 From: Lorenzo Bevilacqua <43483037+ardubev16@users.noreply.github.com> Date: Wed, 15 Nov 2023 17:09:14 +0100 Subject: [PATCH] fix(github): cloned repositories were not deleted afterwards --- github/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/git.go b/github/git.go index 578aa6e..bf494fc 100644 --- a/github/git.go +++ b/github/git.go @@ -34,7 +34,7 @@ func CloneRepository(cloneConfig *common.CloneConfiguration) (*git.Repository, s var err error var dir string if !*cloneConfig.InMemClone { - dir, err := ioutil.TempDir("", "gitrob") + dir, err = ioutil.TempDir("", "gitrob") if err != nil { return nil, "", err }