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

I think you can just omit the `str()` wrapping around `timeout`. The format call takes care of that.