Git checks: skip every global option before the subcommand, not just one `-C`
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
- 76/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- git, python
- Área
- security, testing-qa, tooling
Línea de trabajo
Start in tests/test_redteam.py and find the existing Git-check guard covered for add, commit, and push. Locate the implementation that parses the subcommand and working directory, then update it to skip Git global options and resolve repeated -C and --work-tree correctly. Add the blocked and allowed regression cases named in the issue, using fake paths only, and run that test file.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The Git checks on add, commit and push only run when the subcommand comes straight after git (or, once #19 is merged, after one -C <dir>). Any other global option before the subcommand skips them:
git -c core.autocrlf=false add -Agit -C a -C b add -A(git applies each-Cin turn)git --no-pager -C dir add -Agit --git-dir=dir/.git --work-tree=dir add -A
Done when
- The guard walks past git's global options and finds the subcommand and the folder git will act on:
- repeated
-Cresolve relative to each other --work-treesets the folder-c,--no-pagerand similar are skipped
- repeated
- Regression tests in
tests/test_redteam.pycover a blocked and an allowed case for each, with fake values only.
Found while reviewing #19.
Generated by Claude Code
- Lenguaje dominante
- Python
- Estrellas
- 1
- Forks
- 1
- Merge medio
- 2 h 28 min
- PR fusionados (30 d)
- 6
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una 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 JTHCode/secretguard
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
JTHCode/secretguard#24 ·
Los mantenedores suelen responder en 1 día
-
documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 90/100
JTHCode/secretguard#17 ·
Los mantenedores suelen responder en 1 día
-
documentation help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
JTHCode/secretguard#15 ·
Los mantenedores suelen responder en 1 día
-
help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
JTHCode/secretguard#16 ·
Los mantenedores suelen responder en 1 día
-
Add plugin manifest and hook configuration consistency testsPosiblemente ocupada @nyx60002 la tomó hoy. Abiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
JTHCode/secretguard#4 ·
Los mantenedores suelen responder en 1 día
Todos los issues de JTHCode/secretguard
Issues similares
-
docs(contributing): the two things that silently block a PRPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoavailable documentation good first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 95/100
Nixitov/Riptide-Native#944 ·
Los mantenedores suelen responder en 1 día
-
area: middleware documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
good first issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 95/100
omarelshamy25x/shamy-hijri#63 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
521xueweihan/HelloGitHub#4729 ·