Skip to content

Commit

Permalink
remove self._context
Browse files Browse the repository at this point in the history
It's not necessary, since `GitConfig` object holds `git`.

Signed-off-by: Nanda Lopes <nandalopes@gmail.com>
(cherry picked from commit 22921eb)
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
nandalopes authored and davvid committed May 6, 2021
1 parent fd21b58 commit b086f46
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cola/gitcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def __init__(self, context):
self._cache_key = None
self._configs = []
self._config_files = {}
self._context = context
self._attr_cache = {}
self._find_config_files()

Expand Down Expand Up @@ -213,7 +212,7 @@ def read_config(self, path):
return self._read_config_file(path)

dest = {}
if version.check_git(self._context, 'config-includes'):
if version.check_git(self, 'config-includes'):
args = ('--null', '--file', path, '--list', '--includes')
else:
args = ('--null', '--file', path, '--list')
Expand Down

0 comments on commit b086f46

Please sign in to comment.