| Summary: | Exception when fetching/pulling and no Gerrit notes yet | ||
|---|---|---|---|
| Product: | [Technology] JGit | Reporter: | Dani Megert <daniel_megert> |
| Component: | JGit | Assignee: | Project Inbox <jgit.core-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | denis.roy, matthias.sohn |
| Version: | 2.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Dani Megert
The bad thing is, that it just aborts i.e. it does not fetch/pull the normal changes from the repo just because the notes are missing. I think this is consistent with the behavior of native git, I tried fetching a non-existing branch from jgit using native git and this also fails with an error: [jgit (master)]$ git fetch origin xxx:xxx fatal: Couldn't find remote ref xxx Unexpected end of command stream when using a refspec with wildcards the command silently does fetch nothing: [jgit (master)]$ git fetch origin xxx/*:xxx/* [jgit (master)]$ so if you set fetch = refs/notes/*:refs/notes/* instead of fetch = refs/notes/review:refs/notes/review the fetch command should succeed (also from JGit) I don't know why I used fetch = refs/notes/review:refs/notes/review Maybe a wiki or the Gerrit Configurator added this in the old days. I verified that the current docs and the configurator suggest: fetch = refs/notes/*:refs/notes/* some time ago there was a EGit version which configured fetch = refs/notes/review:refs/notes/review this was fixed with https://git.eclipse.org/r/#/c/4428/ |