git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
3ba1ff4f81a70bed4afbfc0e3cbdd27db4cbd14e blob 1222 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
 
#!/bin/sh

test_description='hunk edit with "commit -p -m"'
. ./test-lib.sh

if ! test_have_prereq PERL
then
	skip_all="skipping '$test_description' tests, perl not available"
	test_done
fi

test_expect_success 'setup (initial)' '
	echo line1 >file &&
	git add file &&
	git commit -m commit1
'

test_expect_success 'edit hunk "commit -p -m message"' '
	test_when_finished "rm -f editor_was_started" &&
	rm -f editor_was_started &&
	echo more >>file &&
	echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit2 file &&
	test -r editor_was_started
'

test_expect_success 'edit hunk "commit --dry-run -p -m message"' '
	test_when_finished "rm -f editor_was_started" &&
	rm -f editor_was_started &&
	echo more >>file &&
	echo e | env GIT_EDITOR=": >editor_was_started" git commit -p -m commit3 file &&
	test -r editor_was_started
'

test_expect_success 'commit date shows timezone offset -0000 when no-record-time-zone is specified' '
        echo test >>file &&
        git add file &&
        TZ=UTC-09 git commit --date=@1600000000 -m "test" --no-record-time-zone &&
        git show -s --format='%aI' >output &&
        echo 2020-09-13T12:26:40-00:00 >expect &&
        test_cmp output expect
'

test_done
debug log:

solving 3ba1ff4f81 ...
found 3ba1ff4f81 in https://public-inbox.org/git/20201013052851.373029-2-shengfa@google.com/
found 998a2103c7 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100755 998a2103c7440f00788ec4c0ef607f8c48781660	t/t7514-commit-patch.sh

applying [1/1] https://public-inbox.org/git/20201013052851.373029-2-shengfa@google.com/
diff --git a/t/t7514-commit-patch.sh b/t/t7514-commit-patch.sh
index 998a2103c7..3ba1ff4f81 100755

Checking patch t/t7514-commit-patch.sh...
Applied patch t/t7514-commit-patch.sh cleanly.

index at:
100755 3ba1ff4f81a70bed4afbfc0e3cbdd27db4cbd14e	t/t7514-commit-patch.sh

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

	https://80x24.org/mirrors/git.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).