Overcommit says I have overcommit hooks on ALL repositories

Abierto
#788 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
28/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
git, ruby
Área
devtools

Línea de trabajo

The report centres on the ~/.git-support directory, which survives overcommit --uninstall, and on install-state detection that disagrees with reality under asdf-ruby. Start by reproducing the install and uninstall cycle, then check whether the uninstall path removes that global directory and whether the status check reads the same location. Done means that uninstall leaves no global state behind and the reported installed/not-installed status matches the repository.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

  1. Overcommit says I have overcommit hooks on ALL repositories; even, and especially, on ones that DO NOT have overcommit hooks installed.
  2. It also tells me the hooks are installed after I do overcommit --uninstall.
  3. Overcommit always tells me it is not installed when it is. Even when running git commands in the terminal where the current local ruby is set with asdf-ruby.
  4. Uninstalling overcommit seems to leave the ~/.git-support in place so I am stuck in this eternal overcommit hell-loop forever.

At minimum, if overcommit is in a self-inflicted circular firing squad mode, at least fail less hard, so I am able to commit things.

Of note: as of MacOS 12 a global overcommit install is not possible, as the System Ruby can't be modified.

rm -rf ~/.git-support has resolved my issues it seems...

Lenguaje dominante
Ruby
Estrellas
4k
Forks
288
Merge medio
2 d 4 h
PR fusionados (30 d)
18

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sds/overcommit

Todos los issues de sds/overcommit

Issues similares

Más issues de Ruby

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.