Fixed git commit author #5

Open
Ghost wants to merge 1 commits from sudo-user into master
First-time contributor

Added current sudo user as git commit author, or current user as fallback.

Added current sudo user as git commit author, or current user as fallback.
First-time contributor

On OpenBSD you can get an equivalent of SUDO_USER with command id -p |grep login | awk '{ print $2 }'.

On OpenBSD you can get an equivalent of `SUDO_USER` with command `id -p |grep login | awk '{ print $2 }'`.
benpro added a new dependency 2019-02-14 15:21:27 +01:00
Owner

There is logname (logname(1)) but I though parsing who -m (who(1)) was enough and worked everywhere.

Can you give an example where the current code fails?

There is `logname` (`logname(1)`) but I though parsing `who -m` (`who(1)`) was enough and worked everywhere. Can you give an example where the current code fails?
This pull request has changes conflicting with the target branch.
  • evomaintenance.sh
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b sudo-user master
git pull origin sudo-user

Step 2:

Merge the changes and update on Forgejo.
git checkout master
git merge --no-ff sudo-user
git push origin master
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
#1 Fix git commit author
evolix/evomaintenance
Reference: evolix/evomaintenance#5
No description provided.