refs.c: use is_dir_sep() in resolve_gitlink_ref()
commitee394bd376e833d8e9e38f81c57f6b4a370e8a92
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 23 Aug 2017 12:36:50 +0000 (23 19:36 +0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 24 Aug 2017 21:42:24 +0000 (24 14:42 -0700)
treead41e65c5b10d9034c521d97d899acfea0f34dc3
parentff9445be4702d6cf6e5e8c202a15066ca355989b
refs.c: use is_dir_sep() in resolve_gitlink_ref()

The "submodule" argument in this function is a path, which can have
either '/' or '\\' as a separator. Use is_dir_sep() to support both.

Noticed-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs.c