Repository navigation
Commit f65c523
authored
Remove temp clone dir after writing a repository (knative#4053)
Repository.Write clones remote repos into a directory from os.MkdirTemp and
copies it to the destination, but never removed the directory. Every
'func repository add' left a full clone under the system temp dir. Defer
os.RemoveAll so the clone is removed on both success and failure.1 parent 7273bc4 commit f65c523
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| 717 | + | |
717 | 718 | | |
718 | 719 | | |
719 | 720 | | |
| |||
0 commit comments