projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git config syntax updates
[git.git]
/
t
/
t1300-repo-config.sh
diff --git
a/t/t1300-repo-config.sh
b/t/t1300-repo-config.sh
old mode 100644
(file)
new mode 100755
(executable)
index
207dd3d
..
028d159
--- a/
t/t1300-repo-config.sh
+++ b/
t/t1300-repo-config.sh
@@
-229,7
+229,7
@@
test_expect_failure 'invalid key' 'git-repo-config inval.2key blabla'
test_expect_success 'correct key' 'git-repo-config 123456.a123 987'
test_expect_success 'hierarchical section' \
test_expect_success 'correct key' 'git-repo-config 123456.a123 987'
test_expect_success 'hierarchical section' \
- 'git-repo-config
1.2.3.a
lpha beta'
+ 'git-repo-config
Version.1.2.3eX.A
lpha beta'
cat > expect << EOF
[beta] ; silly comment # another comment
cat > expect << EOF
[beta] ; silly comment # another comment
@@
-241,11
+241,19
@@
noIndent= sillyValue ; 'nother silly comment
NoNewLine = wow2 for me
[123456]
a123 = 987
NoNewLine = wow2 for me
[123456]
a123 = 987
-[
1.2.3
]
-
a
lpha = beta
+[
Version "1.2.3eX"
]
+
A
lpha = beta
EOF
test_expect_success 'hierarchical section value' 'cmp .git/config expect'
EOF
test_expect_success 'hierarchical section value' 'cmp .git/config expect'
+cat > .git/config << EOF
+[novalue]
+ variable
+EOF
+
+test_expect_success 'get variable with no value' \
+ 'git-repo-config --get novalue.variable ^$'
+
test_done
test_done