Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit a9fd41b

Browse files
mishrapraffulmishraprafful
and
mishraprafful
authored
fix: set a default username (#64)
Co-authored-by: mishraprafful <[email protected]>
1 parent a721449 commit a9fd41b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function showDecoration(e: { readonly textEditor: vscode.TextEditor }) {
3838
cmd.stdin.end();
3939
}
4040

41-
const gitUser = cp.execSync("git config user.name").toString().trim();
41+
const gitUser = cp.execSync("git config user.name").toString().trim() || "John Doe";
4242

4343
cmd.stdout.on("data", (data) => {
4444
const blame = data.toString();

0 commit comments

Comments
 (0)