Added code for addProject from Viktor. Works fine with git.