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

fw git commit validates only the last -m fragment, refusing the conventional subject/body/trailer form

Aperta Adatta ai principianti
#51 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
shell
Ambito
cli

Direzione di ricerca

Leggi agents/git/lib/commit.sh:39-95 per seguire come vengono analizzati gli argomenti -m ripetuti, quindi esamina la riga 143, dove extract_task_id riceve il messaggio. Confronta la gestione del parser con l’unione da parte di Git di più frammenti tramite righe vuote. Il lavoro è completo quando un riferimento a un’attività in un oggetto o nel corpo viene accettato con argomenti -m ripetuti; nell’issue non è indicato alcun file di test.

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

Descrizione

fw git commit extracts the task reference from only the last -m fragment, so the
conventional multi-paragraph form is refused:

fw git commit -m "T-NNNN: repair the glossar adapter" \
              -m "Longer explanation..." \
              -m "Co-Authored-By: Claude ..."
ERROR: No task reference found in commit message

The error quotes the trailer back, which is the only part it looked at.

Code path

agents/git/lib/commit.sh:39-95 — the argument parser has -m) message="$2" with no
accumulation, so each repeated -m overwrites the previous one. Line 143 then runs
extract_task_id "$message" against whatever survived, i.e. the last fragment.

Confirmed still present on 1.6.769.

Why it bites

git itself joins repeated -m fragments with blank lines, so this is the standard way to
write subject/body/trailer. It bites hardest in projects where an attribution trailer is
mandatory on every commit — there, the last fragment is always the trailer, so the
conventional form never works and every commit must be built as a single -m with embedded
newlines via printf.

Suggested fix

Either concatenate the fragments the way git does before extracting, or test the first
fragment, which is the subject and is where a task reference conventionally lives.
Concatenating is strictly better: it also accepts a reference that legitimately appears in
the body.

Filed from project 1409-sprind under its observation-inbox triage task, confirmed by
reading the parser rather than by re-running the original repro.

Lingua principale
Shell
Stelle
16
Fork
6
Merge medio
6h 24m
PR unite (30g)
5

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 DimitriGeelen/agentic-engineering-framework

Tutte le issue di DimitriGeelen/agentic-engineering-framework

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.