diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-16 12:18:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-16 12:18:52 -0700 |
commit | ae7dd1a492b8dd75c1e5dfc514a8cb39d506d9e3 (patch) | |
tree | e953cd62e24dead9e350f37082658e086d6d5a65 /t | |
parent | c651ccc91d1f0f67752b22fab6bfaab9cc327fe8 (diff) | |
parent | dde8a902c774268628015705a7767f61af18b865 (diff) | |
download | git-ae7dd1a492b8dd75c1e5dfc514a8cb39d506d9e3.tar.gz |
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-x | t/t5511-refspec.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t5511-refspec.sh b/t/t5511-refspec.sh index c28932216b..de6db86ccf 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 |