unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 799e221bfcba6d97e1fbec01670747e29a39a6ef 633 bytes (raw)
name: performance-test/T08-git-remote.sh 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
#!/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

debug log:

solving 799e221b ...
found 799e221b in https://yhetil.org/notmuch/20240828160710.866567-6-david@tethera.net/

applying [1/1] https://yhetil.org/notmuch/20240828160710.866567-6-david@tethera.net/
diff --git a/performance-test/T08-git-remote.sh b/performance-test/T08-git-remote.sh
new file mode 100755
index 00000000..799e221b

Checking patch performance-test/T08-git-remote.sh...
Applied patch performance-test/T08-git-remote.sh cleanly.

index at:
100755 799e221bfcba6d97e1fbec01670747e29a39a6ef	performance-test/T08-git-remote.sh

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).