The following is taken from the Jenkins log:
00:00:03.135 > git fetch --tags --progress git@github.com:some_org/some_repo.git +refs/heads/*:refs/remotes/origin/*
00:03:49.659 > git rev-parse origin/master^{commit} # timeout=10
I'm confused as to why this timeout is occurring, because running git fetch
on the same machine, with the same user, takes about 5 to 10 seconds.
I'm using the latest (as of this writing) version of Git (2.1.2) and the latest version of the gitplugin.
Thoughts?
Note: git fetch speed should improve again with Git 2.2+ (November 2014)
See commit cbe7333, by Jeff King (
peff
):refs: speed up
is_refname_available
At least in our case, the issue was git version. We upgraded from 1.9 to 2.1.2 and issue got resolved. When I first posted the question, I was under the wrong impression that the upgrade already took place..