Fix detached head state
update to use -a and desired for hard reset
Fix spec tests
Added multiline parsing tests for branch -a
Merge pull request #139 from cyberious/FM-1284

Fix detached head state