package: hide detached head advice

This commit is contained in:
Max Weber
2020-01-20 04:59:05 -07:00
parent 9f27d8a11f
commit f9164cc2b8

View File

@@ -57,7 +57,7 @@ BUILDDIR="$(mktemp -d /tmp/external-plugin.XXXXXXXX)"
trap "rm -rf ""$BUILDDIR""" EXIT
pushd "$BUILDDIR"
git clone "$repository" "repo"
git clone -c 'advice.detachedHead=false' "$repository" "repo"
pushd "repo"
git checkout "$commit^{commit}"