Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Custom git executable path configuration added. #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bhamon
Copy link

@bhamon bhamon commented Jan 5, 2017

Allows users to configure the Git executable path.
Should solve #144.

For this to work, I had to upgrade the [git-promise] dependency to v3.0.0+.

options = {cwd: cwd}
customPath = atom.config.get("git-control.gitCustomPath")
if customPath
options.gitExec = customPath

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work (at least on windows) for paths with a space in it. This could be solved by adding a " before and after the custom path (so options.gitExec = '"' + customPath + '"').

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants