Just need to add 'sudo -u git -H' before sed, i've already updated this in my repo igitlab, and have updated it in the branch "recipes" which will I will add a pull request to this repo later on

https://github.com/tripflex/igitlab/blob/recipes/igitlab