From a798c5c754b36b855fa8504290698b920866c971 Mon Sep 17 00:00:00 2001 From: Sardorbek Pulatov Date: Mon, 17 Sep 2018 17:24:43 +0200 Subject: [PATCH] check only dot at the end of the branch --- extensions/git/src/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/git/src/commands.ts b/extensions/git/src/commands.ts index f6575f18ca7..e3921534b42 100755 --- a/extensions/git/src/commands.ts +++ b/extensions/git/src/commands.ts @@ -1307,7 +1307,7 @@ export class CommandCenter { return name; } - return name.replace(/^\.|\/\.|\.\.|~|\^|:|\/$|\.lock$|\.lock\/|\\|\*|\s|^\s*$|\.|\[|\]$/g, branchWhitespaceChar); + return name.replace(/^\.|\/\.|\.\.|~|\^|:|\/$|\.lock$|\.lock\/|\\|\*|\s|^\s*$|\.$|\[|\]$/g, branchWhitespaceChar); }; const result = await window.showInputBox({