summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2013-03-07 16:38:44 +0100
committerCarlos Martín Nieto <cmn@elego.de>2013-03-07 16:38:44 +0100
commitbb45c57f94d3c7c96e78234e2a81393c0ced45a0 (patch)
treee501f5be5296ce8d894e69867eb511a6be81fa27 /src/commit.c
parent9952f24e6cc71ef5ecd13831f783e308aae97c36 (diff)
downloadlibgit2-bb45c57f94d3c7c96e78234e2a81393c0ced45a0.tar.gz
refs: explicitly catch leading slashes
It's somewhat common to try to write "/refs/tags/something". There is no easy way to catch it during the main body of the function, as there is no way to distinguish whether it's a leading slash or a double slash somewhere in the middle. Catch this at the beginning so we don't trigger the assert in is_all_caps_and_underscore().
Diffstat (limited to 'src/commit.c')
0 files changed, 0 insertions, 0 deletions