Problems with commit message titles start with #
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 22/100
Línea de trabajo
Start with the EmptyMessage commit-msg rule, since it rejects the commit once Git has stripped the #16: title. Reproduce by committing a message beginning with # under the default config, with core.commentchar set to ;, and with --cleanup=whitespace, and compare how Overcommit reads the message in each case. Done means a #-prefixed title is kept and not rejected as empty, while genuinely empty messages still fail.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I'm facing this obscure issue that with commit message titles start with # (e.g. #16: This is a sample commit for the issue 16)
Behaviours:
Without Overcommit (or after overcommit --uninstall)
- No problems with commit messages start with #
With Overcommit
- With the default Git config
- Git will clean up and strip the commit title, so it becomes empty
- Then overcommit rejects it due to
EmptyMessagerule (which is the correct behaviour of course)
- With
git config --global core.commentchar ';'set- Git still cleans up and strips the commit title with
#, so it becomes empty again - Then overcommit ignores the empty message and doesn't reject the commit (even if EmptyMessage is enabled by default)
- Git still cleans up and strips the commit title with
- With
git config --global commit.cleanup whitespaceset- Maybe I'm doing something wrong here. Setting git commit.cleanup mode has no effect on anything. The commit message is still gone and overcommit is rejecting the empty message.
- Use
git commit -m "#16: This is a sample commit for the issue 16" --cleanup=whitespace- Same as above. No effect when it should.
- Lenguaje dominante
- Ruby
- Estrellas
- 4k
- Forks
- 288
- Merge medio
- 2 d 4 h
- PR fusionados (30 d)
- 18
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sds/overcommit
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
sds/overcommit#909 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
sds/overcommit#847 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 Medio día Aptitud para principiantes 62/100
sds/overcommit#908 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
sds/overcommit#875 ·
Los mantenedores suelen responder en 1 día
-
help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
sds/overcommit#869 ·
Los mantenedores suelen responder en 1 día
Todos los issues de sds/overcommit
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
seek4science/seek#2784 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
yosiat/panko_serializer#243 ·
-
enhancement priority: medium risk: low v1.9.0
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
davidteren/mutineer#379 ·
Los mantenedores suelen responder en 2 días
-
Translation tutorial: snippet crashes on chunks export and misses simple { t } entriesPosiblemente ocupada @Mahdi-Hasan la tomó hoy. Abiertoresource-documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
TarteelAI/quranic-universal-library#1020 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100