]> git.phdru.name Git - bookmarks_db.git/blobdiff - mk-distr
Fix(Robot): Stop splitting and un-splitting URLs
[bookmarks_db.git] / mk-distr
index ce01503798e6e35286c40605976cc7458977de1e..ef471d96d7801b9a55b7eab6742c3909e2d59562 100755 (executable)
--- a/mk-distr
+++ b/mk-distr
@@ -4,18 +4,14 @@
 # This file is a part of Bookmarks database and Internet robot.
 #
 # __author__ = "Oleg Broytman <phd@phdru.name>"
-# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
+# __copyright__ = "Copyright (C) 2000-2015 PhiloSoft Design"
 # __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" &&