diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-03 23:41:28 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-03 23:41:28 -0700 |
commit | 6b16250a4551682b026b2592e44077ffa5fbdf2a (patch) | |
tree | b15621e4d083dbdb624ded786607b79ae7f9b0c2 /t | |
parent | Merge branch 'jc/count' (diff) | |
parent | repo-config: deconvolute logics (diff) | |
download | tgif-6b16250a4551682b026b2592e44077ffa5fbdf2a.tar.xz |
Merge branch 'js/repoconfig'
* js/repoconfig:
repo-config: deconvolute logics
repo-config: readability fixups.
repo-config: support --get-regexp
Diffstat (limited to 't')
-rwxr-xr-x | t/t1300-repo-config.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index ab4dd5c4ce..1bf728fb06 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -247,6 +247,24 @@ EOF test_expect_success 'hierarchical section value' 'cmp .git/config expect' +cat > expect << EOF +beta.noindent=sillyValue +nextsection.nonewline=wow2 for me +123456.a123=987 +1.2.3.alpha=beta +EOF + +test_expect_success 'working --list' \ + 'git-repo-config --list > output && cmp output expect' + +cat > expect << EOF +beta.noindent sillyValue +nextsection.nonewline wow2 for me +EOF + +test_expect_success '--get-regexp' \ + 'git-repo-config --get-regexp in > output && cmp output expect' + cat > .git/config << EOF [novalue] variable @@ -255,5 +273,10 @@ EOF test_expect_success 'get variable with no value' \ 'git-repo-config --get novalue.variable ^$' +git-repo-config > output 2>&1 + +test_expect_success 'no arguments, but no crash' \ + "test $? = 129 && grep usage output" + test_done |