Wrote pre-commit script to get rid of spdipodi:absref for all new and changed svg files.
Copy utils/pre-commit to .git/hooks
and never get bothered by the sodipodi:absref bug again. Note: You have to git add
the files first. If you run git commit -am
, the changes won't make it into the commit.
You will have to copy this again every time you get a fresh clone of the repository.
I decided against a complete repo cleanup at this time because there are too many files.
It is of course also possible to clean files with a good text editor using the regular expression ^\s*sodipodi:absref="\S*"[\r\n]*$
from the sed command.