Simple test of our Git Key-Value store $ mkdir simple $ cd simple $ git init -q 2> /dev/null $ git config init.defaultBranch main $ git checkout -b main -q $ git config user.email "romain@mirage.io" $ git config user.name "Romain Calascibetta" $ echo "Hello World!" > foo $ git add foo $ export DATE="2016-08-21 17:18:43 +0200" $ export GIT_COMMITTER_DATE="2016-08-21 17:18:43 +0200" $ git commit --date "$DATE" -q -m . $ cd .. $ git daemon --base-path=. --export-all --reuseaddr --pid-file=pid --detach $ mgit git://localhost/simple < get /foo > save db.pack > quit # 00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!. # # $ tail -c20 db.pack | base64 - 5LI0Ny5+PX6FCDkSPYcRzZlCcUc= $ mgit git://localhost/simple db.pack < get /foo > quit # 00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!. # $ cd simple $ echo "Git rocks!" > bar $ git add bar $ git commit --date "$DATE" -q -m . $ cd .. $ mgit git://localhost/simple db.pack < pull > get /bar > get /foo > quit # + /bar * / # 00000000: 4769 7420 726f 636b 7321 0a Git rocks!. # 00000000: 4865 6c6c 6f20 576f 726c 6421 0a Hello World!. # $ kill $(cat pid)