AnswerDotAI / AnswerDotAI/fastgit

Failing git commands lose stdout, so errors print empty

Offen
#9 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @KeremTurgutlu Auf GitHub ansehen
bug
Vorherrschende Sprache
Jupyter Notebook
Sterne
7
Forks
0
Ø Merge
1 Min.
Gemergte PRs (30 T.)
1

Beschreibung

`Git.__call__`'s error handler prints only `e.stderr` (core.py:50), but git writes conflict/failure detail to stdout, so a failing command reports nothing useful — unlike the success path in `callgit`, which returns `r.stdout + r.stderr`.

Repro: in a repo where the merge conflicts, `Git(path).merge('upstream/main')` prints `ERROR: git merge upstream/main:` with an empty message and returns `None`; git's own `CONFLICT (content): Merge conflict in ...` / `Automatic merge failed` lines are lost.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.