Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Error in Fetch from Gerit for "invisible" review branch

Thanks Matthias, is it possible to see the changes via "git log" or another command on the server? Git log refuses to show refs/changes for my attempts.

Best regards, Lars

Matthias Sohn <matthias.sohn@xxxxxxxxx> schrieb am Do., 12. Apr. 2018, 14:18:
On Thu, Apr 12, 2018 at 10:08 AM, Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
Hi,

we had a crash of our Gerrit server (hardware) and installed a new
one. After a little tweaking everything works again, except that we
get a error during fetch for the "review" branch. See screenshot.

Running "git fetch -f" on the command line fixes that error but I
would like to understand this better.

Two questions:

1.) Does Eclipse EGit UI allow to perform a forced fetch?
2.) What is the "review" branch and how can I see this in the git
command line tooling. git branch -a does not show it.

Thanks for the help, Lars

git fetch by default only fetches refs/heads/* and refs/tags/* (except if you use a custom refspec).
Gerrit stores review branches in a non-standard namespace under refs/changes/*. These are not
advertised by the standard git protocol so you have to use a custom refspec to fetch them.
You probably don't want to fetch all changes/patchsets from Gerrit but only those you want
to have a look at locally.

I have no idea where this review branch comes from.

Try ls-remote which should list all references available on the server
$ git ls-remote | grep review 

depending on the number of changes in this repository this can take a while
(we have repositories with >500k changes)

-Matthias

Back to the top