models: use symbolic-ref instead of git branch in current_branch()
commit733651dda69184f397d8afce78cbc5c97f58b866
authorDavid Aguilar <davvid@gmail.com>
Sat, 8 Nov 2008 06:16:52 +0000 (7 22:16 -0800)
committerDavid Aguilar <davvid@gmail.com>
Sat, 8 Nov 2008 06:16:52 +0000 (7 22:16 -0800)
treec7d8fee383b3020f8619435002e50638e0e286e3
parentb251185f1d896eb169f96556d573cc58a16c9211
models: use symbolic-ref instead of git branch in current_branch()

This allows cola to handle both git init and detached heads.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/models.py