summaryrefslogtreecommitdiff
path: root/.copr/prepare.sh
diff options
context:
space:
mode:
authorSorin Sbarnea <ssbarnea@redhat.com>2019-12-04 10:11:31 +0000
committerSorin Sbarnea <ssbarnea@redhat.com>2019-12-04 21:44:11 +0000
commitb8ac3f143be8ee8ad29d9fa5586cca5767776584 (patch)
treef880f4c892187f615c5e4c1410199c286240a2cf /.copr/prepare.sh
parent4dbab37e05d7daff858a8b1b968240dcf729d35a (diff)
downloadpodman-b8ac3f143be8ee8ad29d9fa5586cca5767776584.tar.gz
podman-b8ac3f143be8ee8ad29d9fa5586cca5767776584.tar.bz2
podman-b8ac3f143be8ee8ad29d9fa5586cca5767776584.zip
Avoid git warnings by using detach on checkout
Git displays a huge and confusing warning when doing a checkout of a specific commit if the --detach option is not mentioned. This cleans up our build logs, making it easier to spot real problems. Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
Diffstat (limited to '.copr/prepare.sh')
-rw-r--r--.copr/prepare.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/.copr/prepare.sh b/.copr/prepare.sh
index 713cdc2ee..d5a9a7f85 100644
--- a/.copr/prepare.sh
+++ b/.copr/prepare.sh
@@ -34,6 +34,6 @@ if [ ! -d conmon ]; then
git clone -n --quiet https://github.com/containers/conmon
fi
pushd conmon
-git checkout 6f3572558b97bc60dd8f8c7f0807748e6ce2c440
+git checkout --detach 6f3572558b97bc60dd8f8c7f0807748e6ce2c440
git archive --prefix "conmon/" --format "tar.gz" HEAD -o "../build/conmon.tar.gz"
popd