Skip to content

Commit

Permalink
Cleanup temporary repository files (#916) in release 1.4 (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 authored Apr 25, 2024
1 parent 9a245c8 commit 1f04cb0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/serverless/internal/git/go2git.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ func (g *git2GoClient) LastCommit(options Options) (string, error) {
if err != nil {
return "", errors.Wrap(err, "while creating temporary directory")
}
defer os.RemoveAll(repoDir)

repo, err := g.fetchRepo(options, repoDir)
if err != nil {
return "", errors.Wrap(err, "while fetching the repository")
Expand Down

0 comments on commit 1f04cb0

Please sign in to comment.