# 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" &&