requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Git committer name =/= author name #203

Open souramoo opened 5 years ago

souramoo commented 5 years ago

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