From: Oleg Broytman Date: Sun, 27 Dec 2015 16:42:42 +0000 (+0300) Subject: Export given treeish or HEAD X-Git-Tag: 2.7.0~45 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=009a28a12f4bc373c1b2e78959e68eeafc1b2f67;p=mimedecode.git Export given treeish or HEAD --- diff --git a/mk-distr b/mk-distr index 4b75f16..ecce712 100755 --- a/mk-distr +++ b/mk-distr @@ -1,12 +1,8 @@ #! /bin/sh -if [ -n "$1" ]; then - git checkout "$1" -fi && - umask 022 && -git archive --format=tar --prefix=mimedecode/ HEAD | +git archive --format=tar --prefix=mimedecode/ "${1:-HEAD}" | (cd "$HOME/tmp" && exec tar xf -) && # Copy mimedecode.docbook with timestamp to avoid rebuilding