commitizen / commitizen/cz-cli

COMMIT_EDITMSG is not updated

Offen
#643 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
17.5k
Forks
566
Ø Merge
8 Std. 16 Min.
Gemergte PRs (30 T.)
1

Beschreibung

Hello guys and thank you for a wonderful package!

I am experiencing some issues though if commiting from within a submodule directory.
```
(node:16959) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOTDIR: not a directory, open '/home/ubuntu/path/to/repository/submodule/.git/COMMIT_EDITMSG' [edited for bug report]
(node:16959) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
```

Nonetheless script is definitely right because hooks for submodules are located under `../.git/modules/submodule/hooks` and therefore `COMMIT_EDITMSG` file would never appear under `submodule/.git/COMMIT_EDITMSG` and `submodule/.git` is file, that's true as well ;)

I cannot give a time to resolve it by myself at the moment but will hopefully provide a solution somehow later as a contributor.

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, einen Commit aus einem Git-Submodul zu reproduzieren, und verfolge die Verarbeitung von COMMIT_EDITMSG. Vergleiche den fehlschlagenden Pfad submodule/.git/COMMIT_EDITMSG mit dem Speicherort der Hooks unter ../.git/modules/submodule/hooks; erledigt ist die Aufgabe, wenn der Commit-Ablauf nicht mehr versucht, den ungültigen Pfad zu öffnen, und die Operation ohne eine unbehandelte Ablehnung verarbeitet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
git, javascript
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.