# This file is a part of Bookmarks database and Internet robot.
#
# __author__ = "Oleg Broytman <phd@phdru.name>"
-# __copyright__ = "Copyright (C) 2000-2013 PhiloSoft Design"
+# __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
# __license__ = "GNU GPL"
-umask 022
+if [ -n "$1" ]; then
+ git checkout "$1"
+fi &&
+
+umask 022 &&
prog_dir="`pwd`" &&
git archive --format=tar --prefix=bookmarks_db/ HEAD |