From d4d68b84069ca88acc07b6bf6e68eb8f7a3a2327 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 27 Dec 2015 19:42:25 +0300 Subject: [PATCH] Export given treeish or HEAD --- mk-distr | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.39.5