git-branch --track: fix tracking branch computation.
authorJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2007 08:10:14 +0000 (01:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jun 2007 08:10:53 +0000 (01:10 -0700)
commit11f68d908229d1e954009805cd139a89872b9208
tree154d33cfd2fc74bd84e712cf79ad1c0df839e6da
parent2571ac67229370e9b27d19df29f529e7fd5f7502
git-branch --track: fix tracking branch computation.

The original code did not take hierarchical branch names into account at all.

Tested-by: Gerrit Pape <pape@smarden.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c
t/t3200-branch.sh