t7503: does pre-commit-hook learn authorship?
[gitweb.git] / t / t0300-credentials.sh
index 885af8fb62a32be5d52cdf78f40b679c55cb385d..c1c8108148351ab3ec3db3f2615ff88f29d38974 100755 (executable)
@@ -8,10 +8,13 @@ test_expect_success 'setup helper scripts' '
        cat >dump <<-\EOF &&
        whoami=`echo $0 | sed s/.*git-credential-//`
        echo >&2 "$whoami: $*"
-       while IFS== read key value; do
+       OIFS=$IFS
+       IFS==
+       while read key value; do
                echo >&2 "$whoami: $key=$value"
                eval "$key=$value"
        done
+       IFS=$OIFS
        EOF
 
        cat >git-credential-useless <<-\EOF &&