Skip to content

Commit

Permalink
Avoid bloating previous author's contribution stats.
Browse files Browse the repository at this point in the history
Otherwise GitHub counts each force-push of an amended commit
as a contribution by the original author, which may lead
to hundreds and thousands of "fake" contributions provided
that action typically runs multiple times a day.
  • Loading branch information
i-ky authored Nov 10, 2023
1 parent 6324aff commit 5ff6072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ git config --global user.name "Archive Bot"
git add -A
if [[ "$delete_history" == "true" ]]
then
git commit --amend -m "Update archive."
git commit --amend --reset-author -m "Update archive."
# Cleanup loose objects
git gc
else
Expand Down

0 comments on commit 5ff6072

Please sign in to comment.