mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #47389 from dwoz/moregittestfix
Older GitPython versions will not have close
This commit is contained in:
commit
a86e53be66
1 changed files with 2 additions and 1 deletions
|
@ -220,7 +220,8 @@ class GitFSTest(TestCase, LoaderModuleMockMixin):
|
|||
repo.index.add([x for x in os.listdir(self.tmp_repo_dir)
|
||||
if x != '.git'])
|
||||
repo.index.commit('Test')
|
||||
repo.close()
|
||||
if hasattr(repo, 'close'):
|
||||
repo.close()
|
||||
gitfs.update()
|
||||
|
||||
def tearDown(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue