Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367712 - [Project Sets] Cannot import a project with a tag
Summary: [Project Sets] Cannot import a project with a tag
Status: CLOSED DUPLICATE of bug 398513
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 1.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-02 11:07 EST by Tomasz Zarna CLA
Modified: 2013-10-16 19:50 EDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2012-01-02 11:07:04 EST
When trying to import a project referenced with a SCM URL like this: "scm:git:git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.git;path="bundles/org.eclipse.releng.tools";tag=v20111215-1442 the GitProjectSetCapability will fail. For some reason, "v20111215-1442" is treated as a branch reference and passed to CloneCommand as the initial branch to check out. However, this doesn't work:

Failed to read project description file from location 'D:\workspace\eclipse\_runtimes\runtime-EclipseApplication\eclipse.platform.releng\bundles\org.eclipse.releng.tools\.project'.
Failed to read project description file from location 'D:\workspace\eclipse\_runtimes\runtime-EclipseApplication\eclipse.platform.releng\bundles\org.eclipse.releng.tools\.project'.
D:\workspace\eclipse\_runtimes\runtime-EclipseApplication\eclipse.platform.releng\bundles\org.eclipse.releng.tools\.project (The system cannot find the path specified.)

Checkout fails so the "eclipse.platform.releng" folder contains only ".git" subfolder, no sign of "bundles" and "org.eclipse.releng.tools".
Comment 1 Tomasz Zarna CLA 2012-01-02 11:10:01 EST
I guess checking out a tag when cloning is done can be implemented as a org.eclipse.egit.core.op.CloneOperation.PostCloneTask
Comment 2 Tomasz Zarna CLA 2012-02-02 11:22:12 EST
Exporting in such case doesn't work either, see bug 367711.
Comment 3 Markus Keller CLA 2012-10-11 11:16:23 EDT
In Eclipse SDK 4.2.1 and EGit nightly, I can only import from master. "Import the indicated version" is grayed in the "Import Plug-ins and Fragments" wizard.
Comment 4 Matthias Sohn CLA 2012-10-18 02:25:13 EDT
(In reply to comment #3)
> In Eclipse SDK 4.2.1 and EGit nightly, I can only import from master.
> "Import the indicated version" is grayed in the "Import Plug-ins and
> Fragments" wizard.

I think that's not yet implemented
Comment 5 Martin Oberhuber CLA 2013-03-17 20:25:19 EDT
This applies to both "Import from Project Set" and "Import from Plug-Ins View" using the Eclipse-SourceReferences header (scmurl) in META-INF/MANIFEST.MF .
Comment 6 Mykola Nikishov CLA 2013-10-16 19:50:51 EDT

*** This bug has been marked as a duplicate of bug 398513 ***