Lock ref error keeps defaulting to older version on pull on source Tree. How do I fix this?

Andrew Dravucz August 25, 2017

Whenever I try to pull from any branch on source tree (using windows 10) it brings up the following error below.

git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
error: cannot lock ref 'refs/tags/"0.5.7"': Unable to create 'C:/.../DCC bitbucket/.git/refs/tags/"0.5.7".lock': Invalid argument
From https://bitbucket.org/get-paper/dcc
! [new tag] "0.5.7" -> "0.5.7" (unable to update local ref)
error: cannot lock ref 'refs/tags/"0.5.8"': Unable to create 'C:/.../DCC bitbucket/.git/refs/tags/"0.5.8".lock': Invalid argument
! [new tag] "0.5.8" -> "0.5.8" (unable to update local ref)

Suspiciously this seems to have happened to me after I updated because I was able to do a pull before and then I did an update and then this happened. I've tried deleting through the console and physically removing those 0.5.7 and 0.5.8 files in the tags folder but everytime I pull it reappears. The branch I'm pulling from should be v1.0.x

1 answer

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 7, 2017

Hi

I don't have an answer I'm afraid, but what happens if you run the command from the terminal:


git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events