aboutsummaryrefslogtreecommitdiffstats
path: root/repository
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2023-01-11 14:03:40 +0100
committerMichael Muré <batolettre@gmail.com>2023-01-11 14:22:58 +0100
commit2664332bfd17094dd8a485ea085099d6eac33068 (patch)
tree5ebd51ca76742cc6fcbe8357c7c5a7e4fb7ba616 /repository
parent76100380978418dbfa6fa880f05d335c9a4aafcd (diff)
downloadgit-bug-2664332bfd17094dd8a485ea085099d6eac33068.tar.gz
repo: check error when closing a repo in tests
Diffstat (limited to 'repository')
-rw-r--r--repository/gogit_testing.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/repository/gogit_testing.go b/repository/gogit_testing.go
index afbb917f..c76ea61d 100644
--- a/repository/gogit_testing.go
+++ b/repository/gogit_testing.go
@@ -32,7 +32,10 @@ func CreateGoGitTestRepo(t testing.TB, bare bool) TestedRepo {
}
t.Cleanup(func() {
- repo.Close()
+ err := repo.Close()
+ if err != nil {
+ log.Println(err)
+ }
})
config := repo.LocalConfig()