Allow "check-ref-format --branch" from subdirectory
authorJonathan Nieder <jrnieder@gmail.com>
Fri, 6 Aug 2010 03:39:22 +0000 (22:39 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Aug 2010 17:01:45 +0000 (10:01 -0700)
commit49cc460d88f5bae79b45ce2db16674f36b6cf38a
tree5b347503edd9e9000e53565144e9f4617c28858f
parentcfbe22f03f9be1f3bbbd33240dcb127099d4346e
Allow "check-ref-format --branch" from subdirectory

check-ref-format --branch requires access to the repository
to resolve refs like @{-1}.

Noticed by Nguyễn Thái Ngọc Duy.

Cc: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/check-ref-format.c
t/t1402-check-ref-format.sh