summaryrefslogtreecommitdiff
path: root/t/t7412-submodule--helper.sh
blob: 149d42864f29a56eb6eb2883bb204e8ec2f85009 (plain)
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
#!/bin/sh
#
# Copyright (c) 2016 Jacob Keller
#

test_description='Basic plumbing support of submodule--helper

This test verifies the submodule--helper plumbing command used to implement
git-submodule.
'

. ./test-lib.sh

test_expect_success 'sanitize-config clears configuration' '
	git -c user.name="Some User" submodule--helper sanitize-config >actual &&
	test_must_be_empty actual
'

sq="'"
test_expect_success 'sanitize-config keeps credential.helper' '
	git -c credential.helper=helper submodule--helper sanitize-config >actual &&
	echo "${sq}credential.helper=helper${sq}" >expect &&
	test_cmp expect actual
'

test_done