Code

gitattributes: fix relative path matching
authorJunio C Hamano <gitster@pobox.com>
Thu, 7 Feb 2008 08:02:08 +0000 (00:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Feb 2008 08:04:50 +0000 (00:04 -0800)
commitcf94ccda356cc732a883f16342440330d3f644ec
tree0cd15fe01a50aded4e68ce762909f419902b1cb1
parenta0cf49c16ae37177dcfcefa1149bf09f84721cf5
gitattributes: fix relative path matching

There was an embarrassing pair of off-by-one miscounting that
failed to match path "a/b/c" when "a/.gitattributes" tried to
name it with relative path "b/c".

This fixes it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c
t/t0003-attributes.sh [new file with mode: 0755]