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

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

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 Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

238 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot