vanBassum / Wakatime.Unity

A Wakatime plugin for Unity
MIT License
41 stars 7 forks source link

Fixes File IO Implementation #12

Closed buger404 closed 1 year ago

buger404 commented 1 year ago

Fixes the issue #11 Typically reading '.git/HEAD' we'll get 'ref: refs/xxx/branchname'. But also, sometimes we'll get a plain commit id, when the HEAD is in a detached state. In this state, we cannot determine the branch name, because it's not on any branch, it's a special situation. I also left warnings when encounter a situation we've never considered.