t1402-check-ref-format: skip tests of refs beginning with slash on Windows
commit42afe62df449021fcb501f9df09f8ecfaa764d25
authorJohannes Sixt <j6t@kdbg.org>
Thu, 13 Oct 2011 08:06:20 +0000 (13 10:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Oct 2011 23:05:22 +0000 (13 16:05 -0700)
treea7f0d52cd36e60ee270a9e9b81958694ca8ada78
parentdce4bab6567de7c458b334e029e3dedcab5f2648
t1402-check-ref-format: skip tests of refs beginning with slash on Windows

Bash on Windows converts program arguments that look like absolute POSIX
paths to their Windows form, i.e., drive-letter-colon format. For this
reason, those tests in t1402 that check refs that begin with a slash do not
work as expected on Windows: valid_ref tests are doomed to fail, and
invalid_ref tests fail for the wrong reason (that there is a colon rather
than that they begin with a slash).

Skip these tests.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1402-check-ref-format.sh