-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add-on "Squash Git commits" does not use configured committer user/email #7806
Comments
I didn't find Anyway, Weblate does write these to the Git configuration, and it then relies on Git to do the correct thing (author is passed on the command line). So, if |
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
I wouldn't be surprised if I just typed out But it seems weird that the use of that addon uses the incorrect Committer (not Author) in the amended commit. Usually, the Committer is determined by the Git configuration and cannot be modified from the command line (unless certain environment variables are set, mainly meant for reconstructing external history). As far as I can tell, there is no mention of the noreply email anywhere outside the Weblate sources; everything in Anything else I could try and look at? I doubt |
Squash by author does cherry-pick internally, but that should not make a difference. Can you try looking into the Weblate repository for commits before squashing? You should see them in |
Hm, not sure whats going on here, the reflog seems sane:
...where I don't understand whats going on, maybe it magically fixed itself over time (after me fixing the spelling of the variables)? Perhaps an old configuration being loaded somewhere (that recycled since), maybe in wsgi, maybe in celery? I guess we can close this for now, before anyone is getting even more confused than I am right now. 🤷 |
The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.
|
Describe the issue
We've been using the "Squash Git commits" (set to "per author") add-on since it came about, mainly because we let Weblate regularly commit changes in batch and want to avoid a bunch of commits that all come from the same set of translations across multiple languages.
Recently, not sure when exactly this started, we noticed that the committer switched back from our configured
DEFAULT_COMMITER_EMAIL
/DEFAULT_COMMITER_NAME
(which are also set asuser.email
/user.name
in the repository when I checkeddata/vcs/GRP/PRJ
) back toWeblate <noreply@weblate.org>
.While it's not that much of a problem, we'd rather have consistent emails in there (especially when we have a dedicated one that shows Weblate stuff); and it seemed to have worked before, so I'm not sure if this was intentional or not.
I already tried
Steps to reproduce the behavior
Expected behavior
Since both
DEFAULT_COMMITER_EMAIL
/DEFAULT_COMMITER_NAME
are configured insettings.py
(which are also set asuser.email
/user.name
in the repository), I'd expect them to be used while committing to the repository.Screenshots
No response
Exception traceback
No response
How do you run Weblate?
Git checkout
Weblate versions
Weblate deploy checks
Note that the silenced ones are
Weblate.W033
for Mercurial, Gerrit and SVN (since we only use Git) plus the defaultadmin.E408
Additional context
According to our Git history, it seemed to have worked back in May of 2021 (where we had
weblate-4.7
checked out), but did not work as expected in June of 2021 (where we hadweblate-4.9.1
checked out). No translations (or upgrades) in between, so thats the rough window I know of.Everything else seems to be correct (the Author is set to the change author, and the
Co-authored-by
tag is also added to the message) in both cases (before and after).We only noticed this by chance during a bisect that hit Weblate commit and saw the incorrect committer.
Also, I previously had
DEFAULT_COMMITTER_EMAIL
/DEFAULT_COMMITTER_NAME
(note the spelling ofCOMMITTER
with two T's, which is supposedly the correct one overCOMMITER
with one T) insettings.py
, which apparently worked before (since I just changed it to the spelling with one T after double-checking the documentation). I couldn't find any mention in the source code of the spelling with two T's, so that shouldn't affect how things work there.The text was updated successfully, but these errors were encountered: