commitizen / commitizen/cz-cli
run on win10,prompt Could not find Git root folder.
- Langage dominant
- JavaScript
- Étoiles
- 17.5k
- Forks
- 566
- Merge moyen
- 8 h 16 min
- PR mergées (30 j)
- 1
Description
git-cz run on win10 is broken,and prompt
The system cannot find the path specified.
fatal Error: Could not find Git root folder.
const getGitRootDir = () => {
const dir = execSync('git rev-parse --show-toplevel 2>/dev/null')
.toString()
.trim();
return dir;
};


git rev-parse --show-toplevel 2>/dev/null
out-file : 未能找到路径“F:\dev\null”的一部分。
所在位置 行:1 字符: 1
+ git rev-parse --show-toplevel 2>/dev/null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException
+ FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.