commitizen / commitizen/cz-cli

git cz just opens the local editor

未關閉
#558 25 則留言 7 個 reaction 已指派 0 人 在 GitHub 檢視
released
主要語言
JavaScript
星號
17.5k
分支
566
平均合併
8 小時 16 分鐘
30 天內合併 PR
1

描述

git cz is broken for me.

I wanted to get started but it does not work.

I'm using Windows WSL (ubuntu shell on windows) together with zsh.

This is my gitconfig:

```
[alias]
l = log --graph --color --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
ls = ls-files
st = status
amend = commit --amend
amendn = ammend --no-edit
diffs = diff --staged
ch = checkout
f = fetch
p = push
c = commit
a = add -p
r = reset -p
aliases = !git config -l | grep alias | cut -c 7-
whois = !sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -
[diff]
tool = meld
[push]
default = simple
[core]
autocrlf = input
[branch]
autosetuprebase = always
```

Even with my gitconfig removed, I get the following:

![cz](https://user-images.githubusercontent.com/2950505/44917736-84598300-ad39-11e8-990c-d13abf2a846b.gif)

Is there a known bug?

貢獻指南

開啟貢獻指南

研究方向

先在回報的 WSL Ubuntu 與 zsh 環境中從 CLI 重現 `git cz`,先使用提供的 gitconfig,然後不使用它。未指定任何原始檔案或測試;完成的定義是找出為什麼開啟的是本機編輯器,而不是預期的 Commitizen 流程,並為失敗的環境或行為新增覆蓋率。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
git, javascript, ubuntu, zsh
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。