Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Error given when a push fails due to hook failure is not useful

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Reproduce the failure with a pre-push hook using gh stack sync, gh stack push, and gh stack submit, then inspect the push error handling for those commands. Preserve and surface the hook's useful error output instead of only reporting that refs failed; verify the resulting messages against a regular git push.

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

Descrizione

I have a pre-push hook setup on my local repos.

When I try gh stack sync it results in this:
Pushing 3 branches to origin...
⚠ Push failed — branches may need force push after rebase

When I try gh stack push it results in this:
Pushing 3 branches to origin...
✗ failed to push: failed to run git: error: failed to push some refs to 'github.com:<my_repo>'

When I try gh stack submit it results in this:
Pushing to origin...
✗ failed to push <my_branch>: failed to run git: error: failed to push some refs to 'github.com:<my_repo>'

Eventually I was able to guess it was my pre-push hook and tried a regular push and it told me what the error was immediately.

Lingua principale
Go
Stelle
1.5k
Fork
73
Merge medio
1g 8h
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

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 github/gh-stack

Tutte le issue di github/gh-stack

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.