From 009a28a12f4bc373c1b2e78959e68eeafc1b2f67 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 27 Dec 2015 19:42:42 +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 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 -- 2.39.5