]> git.phdru.name Git - audio-cdr-video.git/commitdiff
Export given treeish or HEAD
authorOleg Broytman <phd@phdru.name>
Sun, 27 Dec 2015 16:42:25 +0000 (19:42 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 27 Dec 2015 16:42:25 +0000 (19:42 +0300)
mk-distr

index d7905359e5aa96269fd092bb26d94da07b32ae8f..ed57484a694fdddca413c1204803fca3e6d83787 100755 (executable)
--- 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