summaryrefslogtreecommitdiff
path: root/t/t2019-checkout-ambiguous-ref.sh
Commit message (Collapse)AuthorAgeFilesLines
* t2019: skip test requiring '*' in a file name non WindowsJohannes Sixt2015-08-111-1/+1
| | | | | | | | | | | A test case introduced by ae454f61 (Add tests for wildcard "path vs ref" disambiguation) allocates a file named '*.c'. This does not work on Windows, because the OS forbids file names containing wildcard characters. The test case fails where the shell attempts to allocate the file. Skip the test on Windows. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Add tests for wildcard "path vs ref" disambiguationNguyễn Thái Ngọc Duy2015-07-011-0/+26
| | | | | | | | | | | | | | | | | | Commit 28fcc0b (pathspec: avoid the need of "--" when wildcard is used - 2015-05-02) changes how the disambiguation rules work. This patch adds some tests to demonstrate, basically, if wildcard characters are in an argument: - if the argument is valid extended sha-1 syntax, "--" must be used - otherwise the argument is considered a path, even without "--" And wildcard can appear in extended sha-1 syntax, either as part of regex in ":/<regex>" or as the literal path in ":<path>". The latter case is less likely to happen in real world. But if you do ":/" a lot, you may need to type "--" more. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* i18n: use test_i18ngrep in lib-httpd and t2019Junio C Hamano2011-04-131-6/+6
| | | | Signed-off-by: Junio C Hamano <gitster@pobox.com>
* t2019-checkout-ambiguous-ref.sh: depend on C_LOCALE_OUTPUTÆvar Arnfjörð Bjarmason2011-04-031-2/+2
| | | | | | | | | | The t2019-checkout-ambiguous-ref.sh tests added in v1.7.4.3~12^2 examines the output for a translatable string, and must be marked with C_LOCALE_OUTPUT; otherwise, GETTEXT_POISON=YesPlease tests will break. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* Rename t2019 with typo "amiguous" that meant "ambiguous"Junio C Hamano2011-02-151-0/+59
Signed-off-by: Junio C Hamano <gitster@pobox.com>