]> git.ipfire.org Git - thirdparty/git.git/commit - refs.c
get_ref_dir(): require that the dirname argument ends in '/'
authorMichael Haggerty <mhagger@alum.mit.edu>
Tue, 24 Apr 2012 22:45:10 +0000 (00:45 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 May 2012 20:15:09 +0000 (13:15 -0700)
commitabc390989f1086aa3a8620a81f87622a78cf393b
tree3df158d0b372a34301b1af96907f3120e514c710
parent66a3d20b8f8566581e8aa46e35555f353074f232
get_ref_dir(): require that the dirname argument ends in '/'

This removes some conditional code and makes it consistent with the
way that direntry names are stored.  Please note that this function is
never used on the top-level .git directory; it is always called for
directories at level .git/refs or deeper.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c