Skip to content

Commit 6d2b60b

Browse files
committed
Adds git.path lookup to git search
1 parent 3d994bd commit 6d2b60b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1313
- Adds the *Clear Results* (`gitlen.resultsExplorer.clearResultsNode`) command to the *GitLens Results* view inline for results nodes
1414
- Adds *Push to Commit (via Terminal)* (`gitlens.explorers.terminalPushCommit`) command to commit nodes on the current branch in the *GitLens* explorer
1515

16+
## Changed
17+
- Uses vscode's `git.path` setting when searching for the git executable
18+
1619
### Fixed
1720
- Fixes [#276](https://github.com/eamodio/vscode-gitlens/issues/276) - Lookup for branches without upstreams fails
1821
- Fixes [#274](https://github.com/eamodio/vscode-gitlens/issues/274) - TextEditor is closed/disposed occurs when this extension is enabled

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function activate(context: ExtensionContext) {
3535
const cfg = configuration.get<IConfig>();
3636

3737
try {
38-
await GitService.initialize(cfg.advanced.git);
38+
await GitService.initialize(cfg.advanced.git || workspace.getConfiguration('git').get<string>('path'));
3939
}
4040
catch (ex) {
4141
Logger.error(ex, `GitLens(v${gitlensVersion}).activate`);

0 commit comments

Comments
 (0)