aboutsummaryrefslogtreecommitdiffstats
path: root/ui-blob.c
diff options
context:
space:
mode:
authorJohn Keeping <[email protected]>2013-04-16 17:39:58 +0000
committerJason A. Donenfeld <[email protected]>2013-04-17 11:40:16 +0000
commit9a725f4f0991710336584bb284a83dcf5fa5bf1e (patch)
tree6087786d97c50ae613b1ccd6c4195d9766aff42e /ui-blob.c
parentt0001: ignore ".dirty" suffix on Git version (diff)
downloadcgit-9a725f4f0991710336584bb284a83dcf5fa5bf1e.tar.gz
cgit-9a725f4f0991710336584bb284a83dcf5fa5bf1e.zip
scan-tree: fix regression in section-from-path=-1
Commit fb3655d (use struct strbuf instead of static buffers - 2013-04-06) introduced a regression in the "section-from-path" handling when the configured value is negative. By changing the "rel" variable so that it includes a trailing slash, counting slashes from the end of the string no longer gives the same answer as it did before. Fix this by ensuring that "rel" does not have a trailing slash. Reported-by: Julius Plenz <[email protected]> Signed-off-by: John Keeping <[email protected]>
Diffstat (limited to 'ui-blob.c')
0 files changed, 0 insertions, 0 deletions