sounisi5011 / vec-draw

[WIP] SVGを書きやすくするDSL
0 stars 0 forks source link

`git revert`が機能しない #27

Closed sounisi5011 closed 5 years ago

sounisi5011 commented 5 years ago

git revertコマンドを実行すると、以下のメッセージがコンソールに出現し、失敗してしまう。

$ git revert HEAD 
husky > prepare-commit-msg (node v8.10.0)
./scripts/merge-ban.js > [!] コミットメッセージの解析に失敗しました:
    Revert "🏷️ unistの型情報をexportするように変更"

    This reverts commit 02ad1d5bad194a6d289d5716dd4353156bbceedb.

    # Please enter the commit message for your changes. Lines starting
    # with '#' will be ignored, and an empty message aborts the commit.
    #
    # On branch feature/introduce-unified
    # Changes to be committed:
    #   modified:   src/parser/dsl.type.ts
    #

husky > prepare-commit-msg hook failed (cannot be bypassed with --no-verify due to Git specs)

その後、git commitを試みるが、同じメッセージが出現して先へ進めない。

$ git commit 
husky > pre-commit (node v8.10.0)
  ↓ Stashing changes... [skipped]
    → No partially staged files found...
  ✔ Running linters...
husky > prepare-commit-msg (node v8.10.0)
./scripts/merge-ban.js > [!] コミットメッセージの解析に失敗しました:
    Revert "🏷️ unistの型情報をexportするように変更"

    This reverts commit 02ad1d5bad194a6d289d5716dd4353156bbceedb.

    # Please enter the commit message for your changes. Lines starting
    # with '#' will be ignored, and an empty message aborts the commit.
    #
    # On branch feature/introduce-unified
    # Changes to be committed:
    #   modified:   src/parser/dsl.type.ts
    #

husky > prepare-commit-msg hook failed (cannot be bypassed with --no-verify due to Git specs)

この問題を解決してほしい。

sounisi5011 commented 5 years ago

./scripts/merge-ban.js でCOMMIT_SOURCEがmergeの場合に、マージ対象のブランチの解析が失敗したら実行エラーにするようにしているんだけど、その実装ミスかぁ… 解析できなかったらとりあえず成功にするほうがいいなこれは。