Skip to content

Commit d580e2b

Browse files
committed
V11.0.1
1 parent 83cfb62 commit d580e2b

File tree

6 files changed

+15
-8
lines changed

6 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Change Log
22

3-
## 11.0.0 (May xx, 2024)
3+
## 11.0.1 (May 29, 2024)
4+
* Bug: Environment parameters are no longer sent to git commands [#174](https://github.com/Sertion/vscode-gitblame/issues/174) Thanks to [Martijn Hols](https://github.com/MartijnHols), [amc6](https://github.com/amc6), and especially [Alex Neo](https://github.com/alexneo2003)!
5+
6+
## 11.0.0 (May 21, 2024)
47
* Feature: Will no longer blame files with more lines than `gitblame.maxLineCount` (default `16384`) [#172](https://github.com/Sertion/vscode-gitblame/issues/172)* Thanks to [webextensions](https://github.com/webextensions).
58
* Fun fact: This number was selected as it is the last power of 2 lower than 20000. It has no other significance.
69

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "gitblame",
33
"displayName": "Git Blame",
44
"description": "See git blame information in the status bar.",
5-
"version": "11.0.0",
5+
"version": "11.0.1",
66
"publisher": "waderyan",
77
"engines": {
88
"vscode": "^1.82.0",

src/git/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class Extension {
237237
const editor = getActiveTextEditor();
238238

239239
if (!validEditor(editor)) {
240-
errorMessage("Unable to blame current line");
240+
errorMessage("Unable to blame current line. Active view is not a file on disk.");
241241
return;
242242
}
243243

@@ -258,7 +258,7 @@ export class Extension {
258258
);
259259

260260
if (!line) {
261-
errorMessage("Unable to blame current line");
261+
errorMessage("Unable to blame current line. Unable to get blame information for line.");
262262
}
263263

264264
return line;

src/git/file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export class File {
3333
private async *run(realFileName: string): AsyncGenerator<LineAttachedCommit> {
3434
this.process = blameProcess(realFileName, await getRevsFile(realFileName));
3535

36+
const commitRegistry: CommitRegistry = new Map();
3637
for await (const chunk of this.process?.stdout ?? []) {
37-
const commitRegistry: CommitRegistry = new Map();
3838
yield* processChunk(chunk, commitRegistry);
3939
}
4040
for await (const error of this.process?.stderr ?? []) {

src/git/util/git-command.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export const getGitCommand = (): string => {
2323
};
2424

2525
const runGit = (cwd: string, ...args: string[]): Promise<string> =>
26-
execute(getGitCommand(), args, { cwd: dirname(cwd), env: { LC_ALL: "C" } });
26+
execute(getGitCommand(), args, {
27+
cwd: dirname(cwd),
28+
env: { ...process.env, LC_ALL: "C" },
29+
});
2730

2831
export const getActiveFileOrigin = async (
2932
remoteName: string,
@@ -92,6 +95,7 @@ export const blameProcess = (
9295
cwd: dirname(realpathFileName),
9396
stdio: ["ignore", "pipe", "pipe"],
9497
env: {
98+
...process.env,
9599
LC_ALL: "C",
96100
},
97101
});

0 commit comments

Comments
 (0)