git-branch --track: fix tracking branch computation.
commit7b99befef7d0ae173980f531e80916126011ca41
authorJunio C Hamano <gitster@pobox.com>
Sat, 16 Jun 2007 06:35:32 +0000 (15 23:35 -0700)
committerJunio C Hamano <gitster@pobox.com>
Sat, 16 Jun 2007 06:35:32 +0000 (15 23:35 -0700)
tree34407330acced16567fc535705768d097e67d22b
parent1367214417ee55266ab951cf198bf1aa7e051965
git-branch --track: fix tracking branch computation.

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

[jc: cherry-picked 11f68d9 from 'master']

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