builtin/apply: move 'patch_input_file' global into 'struct apply_state'
[alt-git.git] / t / t7412-submodule--helper.sh
blob149d42864f29a56eb6eb2883bb204e8ec2f85009
1 #!/bin/sh
3 # Copyright (c) 2016 Jacob Keller
6 test_description='Basic plumbing support of submodule--helper
8 This test verifies the submodule--helper plumbing command used to implement
9 git-submodule.
12 . ./test-lib.sh
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
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
26 test_done