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

Custom git executable path configuration added.#221

Open
bhamon wants to merge 1 commit intojacogr:masterfrom
bhamon:master
Open

Custom git executable path configuration added.#221
bhamon wants to merge 1 commit intojacogr:masterfrom
bhamon:master

Conversation

@bhamon
Copy link
Copy Markdown

@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+.

Comment thread lib/git.coffee
options = {cwd: cwd}
customPath = atom.config.get("git-control.gitCustomPath")
if customPath
options.gitExec = customPath
Copy link
Copy Markdown

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