Eric Amodio 4 年之前
父節點
當前提交
a6e855409d
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/git/git.ts

+ 1
- 1
src/git/git.ts 查看文件

@ -1026,7 +1026,7 @@ export namespace Git {
);
// Make sure to normalize: https://github.com/git-for-windows/git/issues/2478
// Keep trailing spaces which are part of the directory name
return data.length === 0 ? undefined : Strings.normalizePath(data.trimLeft().replace(/(\r\n|\r|\n)+$/, ''));
return data.length === 0 ? undefined : Strings.normalizePath(data.trimLeft().replace(/[\r|\n]+$/, ''));
} catch (ex) {
if (ex.code === 'ENOENT') {
// If the `cwd` doesn't exist, walk backward to see if any parent folder exists

Loading…
取消
儲存