Update command to execute as git user

    sudo chmod -R ug+rwX,o-rwx /home/git/repositories/
    sudo chown -R git:git /home/git/repositories/

From the above conditions,

    find /home/git/repositories -type d -print0

should be executed by git user or group.