blob 16a6a52d2528707fd51f7c10b416f48a5eb002ee 1039 bytes (raw)
name: test/T860-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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| | #!/usr/bin/env bash
test_description='git-remote-notmuch'
. $(dirname "$0")/test-lib.sh || exit 1
notmuch_sanitize_git() {
sed 's/^committer \(.*\) \(<[^>]*>\) [1-9][0-9]* [-+][0-9]*/committer \1 \2 TIMESTAMP TIMEZONE/'
}
add_email_corpus
mkdir repo
git_tmp=$(mktemp -d gitXXXXXXXX)
run_helper () {
GIT_DIR=${git_tmp} git-remote-notmuch dummy-alias dummy-url
}
export GIT_COMMITTER_NAME="Notmuch Test Suite"
export GIT_COMMITTER_EMAIL="notmuch@example.com"
export GIT_REMOTE_NM_DEBUG="s"
export GIT_REMOTE_NM_LOG=grn-log.txt
EXPECTED=$NOTMUCH_SRCDIR/test/git-remote-nm.expected-output
TAG_FILE="87/b1/4EFC743A.3060609@april.org/tags"
test_begin_subtest 'capabilities'
echo capabilities | run_helper > OUTPUT
cat <<EOF > EXPECTED
import
export
refspec refs/heads/*:refs/notmuch/*
EOF
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest 'list'
echo list | run_helper > OUTPUT
cat <<EOF > EXPECTED
? refs/heads/master
EOF
test_expect_equal_file EXPECTED OUTPUT
test_done
|
debug log:
solving 7b2b6b49 ...
found 7b2b6b49 in https://yhetil.org/notmuch/20240828160710.866567-3-david@tethera.net/
applying [1/1] https://yhetil.org/notmuch/20240828160710.866567-3-david@tethera.net/
diff --git a/test/T860-git-remote.sh b/test/T860-git-remote.sh\r
new file mode 100755\r
index 00000000..7b2b6b49\r
1:7: trailing whitespace.
#!/usr/bin/env bash\r
1:8: trailing whitespace.
test_description='git-remote-notmuch'\r
1:9: trailing whitespace.
. $(dirname "$0")/test-lib.sh || exit 1\r
1:10: trailing whitespace.
\r
1:11: trailing whitespace.
notmuch_sanitize_git() {\r
Checking patch test/T860-git-remote.sh...
Applied patch test/T860-git-remote.sh cleanly.
warning: squelched 40 whitespace errors
warning: 45 lines add whitespace errors.
index at:
100755 16a6a52d2528707fd51f7c10b416f48a5eb002ee test/T860-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).