#787334 qgit: "Amend Commit" incorrectly adds some garbage to the commit message

Package:
qgit
Source:
qgit
Description:
Qt application for viewing GIT trees
Submitter:
Ralf Jung
Date:
2025-05-05 17:33:15 UTC
Severity:
normal
Tags:
#787334#5
Date:
2015-05-31 15:12:40 UTC
From:
To:
Dear Maintainer,

"Amend Commit" incorrectly adds some garbage to the commit message. This can be reproduced as follows:
1. Go to some git repo with a local change
2. Choose "Edit" - "Amend Commit"
3. Don't touch the commit message, jus hit "Ammend"

Now check the new commit message. It is *not* the same as the old one, instead "on branch <name>" and
some file information has been added.
The reason seems to be that qgit does not correctly process the suggested message it gets from git,
removing too many "#". When I use git on the CLI, the lines that qgit adds start with a "#" and
are hence ignored by git.

This is a regression, in earlier versions of git + qgit (like, a year ago or so), things worked
all right.

Kind regards,
Ralf

#787334#12
Date:
2016-03-27 10:54:12 UTC
From:
To:
I cannot reproduce this with git 1:2.8.0~rc3-1, can you recheck?
#787334#17
Date:
2016-03-28 12:37:31 UTC
From:
To:
Hi,

I just re-checked, the bug is still present.
This is with git 1:2.8.0~rc3-1 and qgit 2.5-2.

Maybe the locale is relevant?

$ env | grep -e LANG -e LC_
LC_NUMERIC=en_US.utf8
LC_MESSAGES=en_US.utf8
LANG=de_DE.utf8
GDM_LANG=de_DE.utf8

Kind regards,
Ralf