Fix pexpect calls in git project type to avoid infinite hanging.

Done, and removing it from the logging line below it as well.