t / t7412-submodule--helper.shon commit Merge branch 'js/replace-edit-use-editor-configuration' (60b3e9b)
   1#!/bin/sh
   2#
   3# Copyright (c) 2016 Jacob Keller
   4#
   5
   6test_description='Basic plumbing support of submodule--helper
   7
   8This test verifies the submodule--helper plumbing command used to implement
   9git-submodule.
  10'
  11
  12. ./test-lib.sh
  13
  14test_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
  19sq="'"
  20test_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
  26test_done