Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

! [new branch] debian/master -> origin/debian/master (unable to update local ref) #6

Closed
knorrie opened this issue Jan 25, 2019 · 0 comments

Comments

@knorrie
Copy link
Owner

@knorrie knorrie commented Jan 25, 2019

PSA: I'm converting the debian branches of this repo to DEP14 format.

That means that we'll have debian/master and debian/stretch-backports etc.

For whoever has cloned this repo before, this will result in the error shown in the subject, when trying to fetch updates:

error: cannot lock ref 'refs/remotes/origin/debian/master': 'refs/remotes/origin/debian' exists; cannot create 'refs/remotes/origin/debian/master'
 ! [new branch]      debian/master            -> origin/debian/master  (unable to update local ref)
error: cannot lock ref 'refs/remotes/origin/debian/stretch-backports': 'refs/remotes/origin/debian' exists; cannot create 'refs/remotes/origin/debian/stretch-backports'
 ! [new branch]      debian/stretch-backports -> origin/debian/stretch-backports  (unable to update local ref)

The git client might suggest:

error: some local refs could not be updated; try running
 'git remote prune origin' to remove any old, conflicting branches

As long as you don't have a local branch based on the old upstream debian, just follow the instruction once, and you'll be fine.

@knorrie knorrie closed this Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.