stormcat24 / protodep

Collect necessary .proto files (Protocol Buffers IDL) and manage dependencies
Apache License 2.0
294 stars 56 forks source link

Fix checkout by tag in revision #64

Closed vigoo closed 3 years ago

vigoo commented 3 years ago

The current checkout code does not work well with tags. If revision points to a tag that is not pointing to the latest commit, the old logic does the following:

This moves the HEAD to the correct commit but leaves the work directory checked out the "invalid" hash which becomes the master head state. And this inconsistent state can cause even more weird behavior if the cache is not cleaned.

The new logic first determines if revision is a tag or not, and based on that does a proper checkout.

stormcat24 commented 3 years ago

Released as 0.1.3.