Skip to content

Commit

Permalink
t/t7810-grep.sh: remove duplicate test_config()
Browse files Browse the repository at this point in the history
t/t7810-grep.sh had its own test_config() function which served the
same purpose as the one in t/test-lib-functions.sh.  Removed, all tests
pass.

Signed-off-by: Jeremiah Mahler <jmmahler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeremiah Mahler authored and Junio C Hamano committed Jun 5, 2014
1 parent bce14aa commit dce6818
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions t/t7810-grep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1096,11 +1096,6 @@ test_expect_success 'grep -E pattern with grep.patternType=fixed' '
test_cmp expected actual
'

test_config() {
git config "$1" "$2" &&
test_when_finished "git config --unset $1"
}

cat >expected <<EOF
hello.c<RED>:<RESET>int main(int argc, const char **argv)
hello.c<RED>-<RESET>{
Expand Down

0 comments on commit dce6818

Please sign in to comment.