Closed tadywankenobi closed 10 years ago
As an aside, I have uninstalled both the Git and WakaTime packages and reinstalled. I will let you know in a little bit if this has resolved the issue. I want to leave a project open and see if I get an alert.
T
No, still occurring. Not sure at all how to resolve.
Can you navigate to the project directory and type:
git branch
Which should give you the error. Then type:
git add .
git commit -m "initial commit"
Now type git branch
again and this time there shouldn't be any error.
This is probably a bug in git: http://stackoverflow.com/questions/15106499
It's not related to the popup for away time, since I removed that popup in favor of being fully automatic.
Fixed with e812e9fe15ea6966683ed7490c0ecf701cc0994e.
Just released a new plugin version 1.4.4 that doesn't run git command line, bypassing this git bug.
Hi Alan,
I recently did a "Fetch Package" within a project I was working on. I created a folder and ran a git init on it, just to log it in WakaTime. I then did the Fetch Package request to install the latest version of WordPress.
I also recently ran a package upgrade. This didn't seem to cause any issues.
I'm not sure if these two items caused the problem, but since then I have had a persistent git error in the status bar of Sublime Text.
git branch: fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this 'git [...] -- [...]' HEAD, index 8?,working 8?
There's also the Line and Column notices after that, but that's just the cursor on the page. I'm also not sure if that "index 8?, working 8?" is relevant.
Time is still being logged to WakaTime, but I am not receiving any popups on time away.
It appears to me the issue is git related, but I have no idea how to resolve. Can you advise if you might know?
Cheers,
Tady