From: Oleg Broytman Date: Sun, 27 Dec 2015 16:42:25 +0000 (+0300) Subject: Export given treeish or HEAD X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d4d68b84069ca88acc07b6bf6e68eb8f7a3a2327;p=audio-cdr-video.git Export given treeish or HEAD --- diff --git a/mk-distr b/mk-distr index d790535..ed57484 100755 --- a/mk-distr +++ b/mk-distr @@ -1,13 +1,9 @@ #! /bin/sh -if [ -n "$1" ]; then - git checkout "$1" -fi && - umask 022 && git archive --format=tar --prefix=audio-cdr-video/ \ - -o "$HOME"/tmp/audio-cdr-video.tar HEAD && + -o "$HOME"/tmp/audio-cdr-video.tar "${1:-HEAD}" && cd "$HOME"/tmp && exec bzip2 -9 audio-cdr-video.tar