Merge branch 'jc/http-socks5h'
[git] / t / t7412-submodule--helper.sh
1 #!/bin/sh
2 #
3 # Copyright (c) 2016 Jacob Keller
4 #
5
6 test_description='Basic plumbing support of submodule--helper
7
8 This test verifies the submodule--helper plumbing command used to implement
9 git-submodule.
10 '
11
12 . ./test-lib.sh
13
14 test_expect_success 'sanitize-config clears configuration' '
15         git -c user.name="Some User" submodule--helper sanitize-config >actual &&
16         test_must_be_empty actual
17 '
18
19 sq="'"
20 test_expect_success 'sanitize-config keeps credential.helper' '
21         git -c credential.helper=helper submodule--helper sanitize-config >actual &&
22         echo "${sq}credential.helper=helper${sq}" >expect &&
23         test_cmp expect actual
24 '
25
26 test_done