Incompatibility with `git-branchless`

Aperta
#869 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
git, ruby
Ambito
devtools

Direzione di ricerca

The failure sits in how overcommit runs a CustomScript hook for post-rewrite, so start in the hook runner code that invokes configured custom scripts and compare its environment with the inline git branchless hook post-rewrite call that works. Reproduce by installing git-branchless alongside overcommit and triggering a rewrite such as an amend. Done means the branchless hook runs without crashing when wired through CustomScript, with a spec covering it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

help wanted

I use both overcommit and git-branchless. Both of these tools install git hooks. I configured overcommit to call the branchless hooks using the PostRewrite: CustomScript setting, but this causes the git branchless hook to crash.

However if I just insert

`git branchless hook post-rewrite #{ARGV}`

as the first line of overcommit's .git/hooks/post-rewrite things are fine.

There are more details here https://github.com/arxanas/git-branchless/issues/1534

My question is - what is different about just hacking this line into post-rewrite vs using the CustomScript config? It seems some overcommit code that uses CustomScript changes something in the environment that breaks the git branchless call.

Lingua principale
Ruby
Stelle
4k
Fork
288
Merge medio
2g 4h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sds/overcommit

Tutte le issue di sds/overcommit

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.