• zeripath's avatar
    Add Close() method to gogitRepository (#8901) · 722a7c90
    zeripath authored
    In investigating #7947 it has become clear that the storage component of go-git repositories needs closing.
    
    This PR adds this Close function and adds the Close functions as necessary.
    
    In TransferOwnership the ctx.Repo.GitRepo is closed if it is open to help prevent the risk of multiple open files.
    
    Fixes #7947
    722a7c90
repo_test.go 1.07 KB