X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=misc%2Ftools%2Fall%2Fgit.subr;h=ac6594fbf8214f39f84974beec21906046bd1d21;hb=cf8cc7e9f8ac5457b6165198999dd3fd9ba33941;hp=b14a8b6f1acd8e0f67443f7a211fcdf3c80fa3af;hpb=8d7446d8974d7bcb40a5ea1c603d8f3816f941b9;p=xonotic%2Fxonotic.git diff --git a/misc/tools/all/git.subr b/misc/tools/all/git.subr index b14a8b6f..ac6594fb 100644 --- a/misc/tools/all/git.subr +++ b/misc/tools/all/git.subr @@ -63,7 +63,7 @@ mirrorspeed() # now actually time it ( set +x - export REPO=$1 # so that the sh -c subshell can use it + export REPO="$1" # so that the sh -c subshell can use it { measure_time sh -c 'git ls-remote "$REPO" refs/heads/master >/dev/null 2>&1'; } 2>&1 >/dev/null | head -n 1 | cut -d ' ' -f 2 | tr -d . | sed 's,^0*,,' | grep . || echo 0 # unit: clock ticks (depends on what "time" returns )