Ver código fonte

Adds git.path lookup to git search

main
Eric Amodio 6 anos atrás
pai
commit
6d2b60bb11
2 arquivos alterados com 4 adições e 1 exclusões
  1. +3
    -0
      CHANGELOG.md
  2. +1
    -1
      src/extension.ts

+ 3
- 0
CHANGELOG.md Ver arquivo

@ -13,6 +13,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Adds the *Clear Results* (`gitlen.resultsExplorer.clearResultsNode`) command to the *GitLens Results* view inline for results nodes
- Adds *Push to Commit (via Terminal)* (`gitlens.explorers.terminalPushCommit`) command to commit nodes on the current branch in the *GitLens* explorer
## Changed
- Uses vscode's `git.path` setting when searching for the git executable
### Fixed
- Fixes [#276](https://github.com/eamodio/vscode-gitlens/issues/276) - Lookup for branches without upstreams fails
- Fixes [#274](https://github.com/eamodio/vscode-gitlens/issues/274) - TextEditor is closed/disposed occurs when this extension is enabled

+ 1
- 1
src/extension.ts Ver arquivo

@ -35,7 +35,7 @@ export async function activate(context: ExtensionContext) {
const cfg = configuration.get<IConfig>();
try {
await GitService.initialize(cfg.advanced.git);
await GitService.initialize(cfg.advanced.git || workspace.getConfiguration('git').get<string>('path'));
}
catch (ex) {
Logger.error(ex, `GitLens(v${gitlensVersion}).activate`);

Carregando…
Cancelar
Salvar