]> git.cameronkatri.com Git - cgit.git/commitdiff
t0109: "function" is a bash-ism
authorJohn Keeping <john@keeping.me.uk>
Thu, 9 May 2013 18:40:58 +0000 (19:40 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 13 May 2013 13:16:48 +0000 (15:16 +0200)
We try to stick to POSIX shell in the tests but a "function" keyword has
found its way into t0109.  Remove it.

This makes the tests work with dash again.

Signed-off-by: John Keeping <john@keeping.me.uk>
tests/t0109-gitconfig.sh

index c9d16a258aee945dc53077489d1c67a221f95630..5a842581069f988dd796e378f0535ea07a44a290 100755 (executable)
@@ -22,7 +22,7 @@ test_no_home_access () {
        test_must_fail grep "$non_existant_path" strace.out
 }
 
-function test_no_home_access_success() {
+test_no_home_access_success() {
        test_expect_success "do not access \$HOME: $1" "
                test_no_home_access '$1'
        "