refs/for/ names blocks but no actual refs/for/ branch there

872 views
Skip to first unread message

Max Spring

unread,
Mar 3, 2014, 2:55:21 PM3/3/14
to repo-d...@googlegroups.com
  $ git push origin HEAD:refs/for/master
  fatal: One or more refs/for/ names blocks change upload
  fatal: The remote end hung up unexpectedly

But

  $ git for-each-ref refs/for

gives nothing.

The error_log on the server says:

  [2014-03-03 11:47:02,801] ERROR com.google.gerrit.server.util.MagicBranch : Repository 'my-proj' needs the following refs removed to receive changes: [develop]

I do have a branch named "develop":

  $ git show-ref
  e8acadc8ea3f7a9e0671575e09cc0b142f9c4505 refs/heads/master
  e80563b4efdf605821057833911af849ff4271d7 refs/remotes/origin/HEAD
  70be4103619b865a097ad9365a281f8af6f2c677 refs/remotes/origin/develop
  e80563b4efdf605821057833911af849ff4271d7 refs/remotes/origin/master
  dde79cd38c4512f002027208b4aeff8d120d06a2 refs/remotes/origin/mobile

No other messages in the Gerrit log.

-Max

James Moger

unread,
Mar 3, 2014, 3:04:43 PM3/3/14
to Max Spring, repo-discuss@googlegroups.com Discussion
show-ref defaults to branches and tags.

What about: git ls-remote <remote> refs/for/*

-J
> --
> --
> To unsubscribe, email repo-discuss...@googlegroups.com
> More info at http://groups.google.com/group/repo-discuss?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Repo and Gerrit Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to repo-discuss...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Max Spring

unread,
Mar 3, 2014, 3:51:07 PM3/3/14
to repo-d...@googlegroups.com, Max Spring
$ git ls-remote origin refs/for/*
ddc386cf322faa69a41284c09774b4e915d059d0 refs/for/develop

-Max

James Moger

unread,
Mar 3, 2014, 3:54:24 PM3/3/14
to Max Spring, repo-discuss@googlegroups.com Discussion
Well there it is. You'll have to remove it if you haven't already.

-J

Max Spring

unread,
Mar 3, 2014, 5:07:46 PM3/3/14
to repo-d...@googlegroups.com, Max Spring
Yes, after some fiddling, I finally was able to delete this ref.
Thank you!
-Max

Vishal Poptani

unread,
Feb 6, 2017, 6:57:10 AM2/6/17
to Repo and Gerrit Discussion, maximili...@gmail.com
Hello Max,

Can you tell me how did you delete this ref? I am facing the exact same issue.. 

git for-each-ref gives nothing and when i used the command git ls-remote i was able to list it.

Now when i try to delete this ref using git update-ref -d refs/for/master it does nothing. Is there any other way to delete this ref?

Regards,
-Vishal

Dmitriy Rabotyagov

unread,
May 7, 2020, 4:52:43 AM5/7/20
to Repo and Gerrit Discussion
It really would be great to share the way of doing that...

вторник, 4 марта 2014 г., 0:07:46 UTC+2 пользователь Max Spring написал:

David Pursehouse

unread,
May 7, 2020, 5:20:22 AM5/7/20
to Dmitriy Rabotyagov, Repo and Gerrit Discussion
On Thu, May 7, 2020 at 5:52 PM Dmitriy Rabotyagov <nooned...@gmail.com> wrote:
It really would be great to share the way of doing that...


One way would be to delete the ref directly on the server, i.e. bypassing gerrit.


 
вторник, 4 марта 2014 г., 0:07:46 UTC+2 пользователь Max Spring написал:
Yes, after some fiddling, I finally was able to delete this ref.
Thank you!
-Max

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages