#!/usr/bin/env bash test_description='git-remote-notmuch' . $(dirname "$0")/perf-test-lib.sh || exit 1 export GIT_COMMITTER_NAME="Notmuch Test Suite" export GIT_COMMITTER_EMAIL="notmuch@example.com" time_start time_run 'clone --bare' "git clone --quiet --bare notmuch::default default.git" time_run 'clone' "git clone --quiet notmuch::default" cd default hash=$(git hash-object --stdin -w < /dev/null) # replace all files with empty files git ls-tree -r HEAD | sed "s/blob [^\t]*/blob $hash/" | git update-index --index-info git commit -m'zero tags' 2>>log.txt 1>&2 time_run "push" "git push --quiet origin master" time_done