Menu

Commit Maintenance

I did some maintenance on the devel branch to remove invalid commit authors. I noticed a few commit's had localhost instead of a valid sf.net user email.

This was confirmed by running this command.

git log | grep "^Author: " | sort | uniq -c

I then replaced those "invalid" commits with a valid one.

git filter-branch --commit-filter '
        if [ "$GIT_COMMITTER_NAME" = "Author Name" ];
        then
        GIT_COMMITTER_NAME="Author Name";
                GIT_AUTHOR_NAME="Author Name";
        GIT_COMMITTER_EMAIL="username@users.sourceforge.net";
                GIT_AUTHOR_EMAIL="username@users.sourceforge.net";
                git commit-tree "$@";
        else
                git commit-tree "$@";
        fi' HEAD

Unfortunatly I had to delete the entire devel branch on sf.net and repush from my local copy.

git push origin :devel
git push origin
Posted by Justin Yaple 2015-08-20

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.