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

test_description='reset can handle submodules'

. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-submodule-update.sh

KNOWN_FAILURE_SUBMODULE_RECURSIVE_NESTED=1
KNOWN_FAILURE_DIRECTORY_SUBMODULE_CONFLICTS=1
KNOWN_FAILURE_SUBMODULE_OVERWRITE_IGNORED_UNTRACKED=1
KNOWN_DIFFERENCE_SUBMODULE_REFS_NOT_UPDATED="reset"

KNOWN_FAILURE_SUBMODULE_REFS_NOT_UPDATED=1
test_submodule_switch_recursing_with_args "reset --keep"

unset KNOWN_FAILURE_SUBMODULE_REFS_NOT_UPDATED
test_submodule_forced_switch_recursing_with_args "reset --hard"

KNOWN_FAILURE_SUBMODULE_REFS_NOT_UPDATED=1
test_submodule_switch "git reset --keep"

unset KNOWN_FAILURE_SUBMODULE_REFS_NOT_UPDATED
test_submodule_switch "git reset --merge"

test_submodule_forced_switch "git reset --hard"

test_done
debug log:

solving c31acc6578 ...
found c31acc6578 in https://public-inbox.org/git/20180927221603.148025-1-sbeller@google.com/
found a1cb9ff858 in https://80x24.org/mirrors/git.git
preparing index
index prepared:
100755 a1cb9ff858e4a2113bbf7fb732b9e6d0cb308445	t/t7112-reset-submodule.sh

applying [1/1] https://public-inbox.org/git/20180927221603.148025-1-sbeller@google.com/
diff --git a/t/t7112-reset-submodule.sh b/t/t7112-reset-submodule.sh
index a1cb9ff858..c31acc6578 100755

Checking patch t/t7112-reset-submodule.sh...
Applied patch t/t7112-reset-submodule.sh cleanly.

index at:
100755 c31acc65788e2b72048b8f98370f36a611f84112	t/t7112-reset-submodule.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

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.org/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