From 43a7efd180044431d061debd0ab4b66e2b15c7e6 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 27 Dec 2015 19:42:30 +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 ce01503..5258d4f 100755 --- a/mk-distr +++ b/mk-distr @@ -8,14 +8,10 @@ # __license__ = "GNU GPL" -if [ -n "$1" ]; then - git checkout "$1" -fi && - umask 022 && prog_dir="`pwd`" && -git archive --format=tar --prefix=bookmarks_db/ HEAD | +git archive --format=tar --prefix=bookmarks_db/ "${1:-HEAD}" | (cd "$HOME/tmp" && exec tar xf -) && cd "$HOME/tmp/bookmarks_db" && -- 2.39.5