libgit2/tests-clar/refs
Carlos Martín Nieto e5ef0f1814 refs: handle ALLOW_ONELEVEL normalization with leading slash
A leading slash confuses the name normalization code when the flags
include ALLOW_ONELEVEL. Catch this case in particular to avoid
triggering an assertion in the uppercase check which expects us not to
pass it an empty string.

The existing tests don't catch this as they simply use the NORMAL
flag.

This fixes #1300.
2013-01-31 20:23:30 +01:00
..
branches Use cl_assert_equal_s() instead of strcmp(). 2013-01-25 06:55:56 +01:00
reflog reflog: Deploy EINVALIDSPEC usage 2012-12-01 08:34:27 +01:00
crashes.c Rename ref and reflog apis for consistency 2012-11-27 13:17:45 -08:00
create.c refs: Deploy EINVALIDSPEC usage 2012-12-01 08:34:26 +01:00
delete.c Rename ref and reflog apis for consistency 2012-11-27 13:17:45 -08:00
foreachglob.c Rename ref and reflog apis for consistency 2012-11-27 13:17:45 -08:00
isvalidname.c refs: handle ALLOW_ONELEVEL normalization with leading slash 2013-01-31 20:23:30 +01:00
list.c Tests: Add 3 tags to resources/testrepo. 2012-09-23 01:02:07 +02:00
listall.c Seperate out a new test that verifies packed-refs with no trailing newline 2013-01-22 16:01:03 -08:00
lookup.c Rename ref and reflog apis for consistency 2012-11-27 13:17:45 -08:00
normalize.c Use cl_assert_equal_s() instead of strcmp(). 2013-01-25 06:55:56 +01:00
overwrite.c Rename ref and reflog apis for consistency 2012-11-27 13:17:45 -08:00
pack.c Boom 2012-05-02 16:57:16 -07:00
peel.c object: refine git_object_peel() error report 2012-12-01 08:34:29 +01:00
read.c refs: cover git_reference_name_to_oid() unfound behavior 2012-12-01 08:34:26 +01:00
rename.c refs: Deploy EINVALIDSPEC usage 2012-12-01 08:34:26 +01:00
revparse.c revparse: Deploy EINVALIDSPEC usage 2012-12-01 08:34:31 +01:00
unicode.c Use cl_assert_equal_s() instead of strcmp(). 2013-01-25 06:55:56 +01:00
update.c refs: Deploy EINVALIDSPEC usage 2012-12-01 08:34:26 +01:00