From: Oleg Broytman Date: Sun, 27 Dec 2015 16:42:30 +0000 (+0300) Subject: Export given treeish or HEAD X-Git-Tag: 5.0.0~135 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=43a7efd180044431d061debd0ab4b66e2b15c7e6;p=bookmarks_db.git Export given treeish or HEAD --- 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" &&