-
- Downloads
RepoProject: read the "upstream" attribute of a project
The manifest spec [1] defines the "upstream" attribute: "name of the git ref in which a sha1 can be found", when the revision is a sha1. The parser is ignoring it, but RepoCommand could use it to populate the "ref=" field of pinned submodules. Parse the value and store it in the RepoProject. RepoProject is public API and the current constructors are not telescopic, so we cannot just add a new constructor with an extra argument. Use plain getter/setters.j [1] https://gerrit.googlesource.com/git-repo/+/master/docs/manifest-format.md#Element-project Change-Id: Ia50b85b95bfd3710f9fbda2050be5950dd686941 (cherry picked from commit 1dd6324d)
Showing
- org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/ManifestParserTest.java 39 additions, 0 deletions...test/tst/org/eclipse/jgit/gitrepo/ManifestParserTest.java
- org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/ManifestParser.java 2 additions, 0 deletions...pse.jgit/src/org/eclipse/jgit/gitrepo/ManifestParser.java
- org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoProject.java 26 additions, 0 deletions...clipse.jgit/src/org/eclipse/jgit/gitrepo/RepoProject.java
Please register or sign in to comment