Skip to content

Commit 9089de7

Browse files
committed
Fixes #343 - use case insensitive matching for git errors
1 parent 15f5a1f commit 9089de7

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1616
- Fixes [#345](https://github.com/eamodio/vscode-gitlens/issues/345) - Custom date formats don't work in the GitLens view
1717
- Fixes [#336](https://github.com/eamodio/vscode-gitlens/issues/336) - Default Settings Get Added Automatically
1818
- Fixes [#342](https://github.com/eamodio/vscode-gitlens/issues/342) - GitLens crashes while debugging with Chrome Debugger a larger project
19+
- Fixes [#343](https://github.com/eamodio/vscode-gitlens/issues/343) - Can't show blame when VSCode starts on branch without upstream
1920
- Fixes issue where username and/or password in a remote urls could be shown
2021

2122
## [8.2.1] - 2018-04-11

src/git/git.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ const stashFormat = [
5050
const defaultStashParams = ['stash', 'list', '--name-status', '-M', `--format=${stashFormat}`];
5151

5252
const GitWarnings = {
53-
notARepository: /Not a git repository/,
54-
outsideRepository: /is outside repository/,
55-
noPath: /no such path/,
56-
noCommits: /does not have any commits/,
57-
notFound: /Path \'.*?\' does not exist in/,
58-
foundButNotInRevision: /Path \'.*?\' exists on disk, but not in/,
59-
headNotABranch: /HEAD does not point to a branch/,
60-
noUpstream: /no upstream configured for branch \'(.*?)\'/,
61-
unknownRevision: /ambiguous argument \'.*?\': unknown revision or path not in the working tree/
53+
notARepository: /Not a git repository/i,
54+
outsideRepository: /is outside repository/i,
55+
noPath: /no such path/i,
56+
noCommits: /does not have any commits/i,
57+
notFound: /Path \'.*?\' does not exist in/i,
58+
foundButNotInRevision: /Path \'.*?\' exists on disk, but not in/i,
59+
headNotABranch: /HEAD does not point to a branch/i,
60+
noUpstream: /no upstream configured for branch \'(.*?)\'/i,
61+
unknownRevision: /ambiguous argument \'.*?\': unknown revision or path not in the working tree/i
6262
};
6363

6464
async function gitCommand(options: CommandOptions & { readonly correlationKey?: string }, ...args: any[]): Promise<string> {

0 commit comments

Comments
 (0)