Closed SlimeQ closed 8 years ago
Hi, I've been seeing this too sometimes, that output is straight from shelljs so it looks to be a bug in the shell script which this package depends on.
At the moment I'm not sure what's causing it as I'm not too familiar with how the script works. However, you can manually fix this from your terminal by running git update-ref -d refs/wip/master
.
This isn't really a huge issue, it can be caused by something as simple as your local branch having an uppercase letter which is lowercase on the remote. This error states that the reference name is different, but the underlying data is fine so don't worry about losing any of your work.
I'll keep this open until I can figure out what's going on. I pushed a few fixes today, so if the new changes help, let me know.
Also, you mentioned it happens when you run a project-wide regex.. can you check if you have the same keyboard shortcut for creating a WIP checkpoint and something related to find/replace? That could be a source of this issue as well, I can imagine that if your 'active' window is find/replace, git-wip will try to create a checkpoint for it (since its the 'active' editor) but the find/replace view has no file associated with it in your repo so I could definitely see that confusing the tool.
Closing this due to inactivity
[Enter steps to reproduce below:]
Atom Version: 1.0.11 System: elementary OS Thrown From: git-wip package, v0.1.3
Stack Trace
Uncaught Error: error: Ref refs/wip/master is at cd86c70bf3bdaae39624b0613b771c140bd3f560 but expected 251811d27c40c2a99daf2b11f9b76fd54aed2c31 fatal: Cannot lock the ref 'refs/wip/master'.
Commands
Config
Installed Packages