Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Git committer name =/= author name#203

Open
souramoo wants to merge 1 commit intorequarks:masterfrom
souramoo:fix-git-history
Open

Git committer name =/= author name#203
souramoo wants to merge 1 commit intorequarks:masterfrom
souramoo:fix-git-history

Conversation

@souramoo
Copy link

@souramoo souramoo commented May 9, 2019

There seems to be a bit of a bug with the history feature of wiki.js

Whenever an edit is made, a git commit is made with the change to the repository with the author set to the user logged into wiki.js.

However, when the history is being displayed, the author is shown as the system git name/email rather than the wiki.js user that made the edit.

This is because the %cE and %cN format flags are used. As seen on https://git-scm.com/docs/pretty-formats, the author name and committer names can be different, and it is only the author names that are being changed by wiki.js when committing.

This pull request fixes the issue. Tested with git v.2.7.4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant