summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-16 19:18:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-16 19:18:52 (GMT)
commitae7dd1a492b8dd75c1e5dfc514a8cb39d506d9e3 (patch)
treee953cd62e24dead9e350f37082658e086d6d5a65 /t
parentc651ccc91d1f0f67752b22fab6bfaab9cc327fe8 (diff)
parentdde8a902c774268628015705a7767f61af18b865 (diff)
downloadgit-ae7dd1a492b8dd75c1e5dfc514a8cb39d506d9e3.zip
git-ae7dd1a492b8dd75c1e5dfc514a8cb39d506d9e3.tar.gz
git-ae7dd1a492b8dd75c1e5dfc514a8cb39d506d9e3.tar.bz2
Merge branch 'dt/refs-check-refname-component-optim'
* dt/refs-check-refname-component-optim: refs.c: optimize check_refname_component()
Diffstat (limited to 't')
-rwxr-xr-xt/t5511-refspec.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t5511-refspec.sh b/t/t5511-refspec.sh
index c289322..de6db86 100755
--- a/t/t5511-refspec.sh
+++ b/t/t5511-refspec.sh
@@ -5,7 +5,6 @@ test_description='refspec parsing'
. ./test-lib.sh
test_refspec () {
-
kind=$1 refspec=$2 expect=$3
git config remote.frotz.url "." &&
git config --remove-section remote.frotz &&
@@ -84,4 +83,9 @@ test_refspec push 'refs/heads/*/*/for-linus:refs/remotes/mine/*' invalid
test_refspec fetch 'refs/heads/*/for-linus:refs/remotes/mine/*'
test_refspec push 'refs/heads/*/for-linus:refs/remotes/mine/*'
+good=$(printf '\303\204')
+test_refspec fetch "refs/heads/${good}"
+bad=$(printf '\011tab')
+test_refspec fetch "refs/heads/${bad}" invalid
+
test_done