Closed bluekelp closed 11 years ago
I stumbled into this too because of a silly typo in my Cheffile.
The behavior of librarian-chef (local index reset, local changes lost, branched switched into nirwhana) is NOT acceptable! A nice error message explaining what gone wrong where would be helpful but no destructive operation in the parent repository librarian-chef has nothing to do with!
I'm using librarian (0.0.26).
(verified this is present in latest librarian-chef gem available via "gem install librarian-chef --pre" also)
if user enters a :github => URL for a repo as https://github.com/owner/repo instead of owner/repo and runs librarian-chef update the tool fails with this message:
the local index has been reset, local mods lost (even those staged via add), and the owning project's branch switched to an anonymous/headless branch (e.g., from master). i was unable to figure out how to recover my lost changes.
e.g., my project, foo, is in git and contains a chef/ dir which contains the Cheffile and its managed cookbooks/ dir. the foo repo is the one being messed up by the typo in the Cheffile.