Fixed issue #1807: Handle new descriptions of detached head introduced in git 1.8.3

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>