Fixed git commit author #5
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Depends on
#1 Fix git commit author
evolix/evomaintenance
Reference: evolix/evomaintenance#5
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "sudo-user"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Added current sudo user as git commit author, or current user as fallback.
On OpenBSD you can get an equivalent of
SUDO_USER
with commandid -p |grep login | awk '{ print $2 }'
.There is
logname
(logname(1)
) but I though parsingwho -m
(who(1)
) was enough and worked everywhere.Can you give an example where the current code fails?
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.