Skip to content

Commit

Permalink
app: support XDG_CONFIG_HOME for git-bindir
Browse files Browse the repository at this point in the history
Allow users to control where git-cola looks for git-bindir by supporting
the XDG_CONFIG_HOME environment variable.

Related-to: git-cola#1258
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Sep 29, 2022
1 parent 95134ee commit 48f7e2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cola/app.py
Expand Up @@ -634,9 +634,7 @@ def find_git():
# If the user wants to use a Git/bin/ directory from a non-standard
# directory then they can write its location into
# ~/.config/git-cola/git-bindir
git_bindir = os.path.expanduser(
os.path.join('~', '.config', 'git-cola', 'git-bindir')
)
git_bindir = resources.config_home('git-bindir')
if core.exists(git_bindir):
custom_path = core.read(git_bindir).strip()
if custom_path and core.exists(custom_path):
Expand Down

0 comments on commit 48f7e2f

Please sign in to comment.