It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
minnsey Atlassian Team Sep 07, 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
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,942 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you