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