Add timeouts to git operations