diff --git a/hack/.vendor-helpers.sh b/hack/.vendor-helpers.sh index 5cac707a26..f6aa038e76 100755 --- a/hack/.vendor-helpers.sh +++ b/hack/.vendor-helpers.sh @@ -28,7 +28,7 @@ clone() { case "$vcs" in git) git clone --quiet --no-checkout "$url" "$target" - ( cd "$target" && git reset --quiet --hard "$rev" ) + ( cd "$target" && git checkout --quiet "$rev" && git reset --quiet --hard "$rev" ) ;; hg) hg clone --quiet --updaterev "$rev" "$url" "$target"