SiliconSloth / Metro

Simple and flexible version control and code syncing.
MIT License
1 stars 1 forks source link

Switching on headless tag/commit #77

Closed Black-Photon closed 4 years ago

Black-Photon commented 4 years ago

Issue Description

When a tag/commit is checked out, attempting to use commands such as metro branch, metro switch and metro list branches will give an error Branch not found.

Expected Behaviour

Commands should operate normally, only giving an error when a current branch being checked out is required.

Reproducibility

$ git checkout tag
$ metro list branches

System Details

Windows 10

Release Version

Commit 35a995c

SiliconSloth commented 4 years ago

This should now work when a commit ID is checked out as of #89, however I'll test whether it also works when tags are checked out later.

SiliconSloth commented 4 years ago

Fixed by #92