git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
a5515973c777ee8556fdff760a393325ddcec087 blob 1307 bytes (raw)

 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
46
47
48
49
50
51
52
53
54
55
56
57
58
 
#!/bin/sh

test_description='Testing the sq_quote_buf_pretty method in quote.c'
. ./test-lib.sh

test_expect_success 'test method without input string' '
	test_must_fail test-tool quote-buf-pretty
'

test_expect_success 'test null string' '
	cat >expect <<-EOF &&
	'[\'\']'
	EOF
	test-tool quote-buf-pretty nullString >actual &&
	test_cmp expect actual
'

test_expect_success 'test empty string' '
	cat >expect <<-EOF &&
	'[\'\']'
	EOF
	test-tool quote-buf-pretty "" >actual &&
	test_cmp expect actual
'

test_expect_success 'string without any punctuation' '
	cat >expect <<-EOF &&
	[testString]
	EOF
	test-tool quote-buf-pretty testString >actual &&
	test_cmp expect actual
'

test_expect_success 'string with punctuation that do not require special quotes' '
	cat >expect <<-EOF &&
	[test+String]
	EOF
	test-tool quote-buf-pretty test+String >actual &&
	test_cmp expect actual
'

test_expect_success 'string with punctuation that requires special quotes' '
	cat >expect <<-EOF &&
	'[\'test~String\']'
	EOF
	test-tool quote-buf-pretty test~String >actual &&
	test_cmp expect actual
'

test_expect_success 'string with punctuation that requires special quotes' '
	cat >expect <<-EOF &&
	'[\'test\'\\!\'String\']'
	EOF
	test-tool quote-buf-pretty test!String >actual &&
	test_cmp expect actual
'

test_done
debug log:

solving a5515973c7 ...
found a5515973c7 in https://public-inbox.org/git/9d2685bdb2e193986bec8cad88795963977d41fe.1566329700.git.gitgitgadget@gmail.com/

applying [1/1] https://public-inbox.org/git/9d2685bdb2e193986bec8cad88795963977d41fe.1566329700.git.gitgitgadget@gmail.com/
diff --git a/t/t0091-quote.sh b/t/t0091-quote.sh
new file mode 100755
index 0000000000..a5515973c7

Checking patch t/t0091-quote.sh...
Applied patch t/t0091-quote.sh cleanly.

index at:
100755 a5515973c777ee8556fdff760a393325ddcec087	t/t0091-quote.sh

git@vger.kernel.org list mirror (unofficial, one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git