Fixed bug with git repositories