Code

Fix incorrect ref namespace check
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 5 Jan 2012 12:39:40 +0000 (19:39 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Jan 2012 20:52:12 +0000 (12:52 -0800)
commit97ba642bcf918de028b2e77165c5210cf3f462e5
tree7e9e06846d27d3ddcbbf0328b97c52a943e444d0
parent8311158c66e0d83df950ea837fb1cb332c51f798
Fix incorrect ref namespace check

The reason why the trailing slash is needed is obvious. refs/stash and
HEAD are not namespace, but complete refs. Do full string compare on them.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch.c
builtin/remote.c
log-tree.c