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 Sign up to answer
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

986 views 2 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