Bug 519492 - Projectset importer fails when importing projects from different branches of one repository
Summary: Projectset importer fails when importing projects from different branches of ...
Status: NEW
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-11 05:52 EDT by Petar Petrov CLA
Modified: 2017-07-11 05:52 EDT (History)
0 users

See Also:


Attachments
test cases for importing PSF file with projects from different branches (15.02 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2017-07-11 05:52 EDT, Petar Petrov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petar Petrov CLA 2017-07-11 05:52:36 EDT
Created attachment 269310 [details]
test cases for importing PSF file with projects from different branches

There are different cases with incorrect behavior of the projectset importer (see attached file). 

Most of the wrong cases are with existing local repository with checked out different branch. The Projectset Importer takes the projects from existing repository (from the wrong branch).

The cause of this wrong behavior is that the ProjectReferenceImporter searches for configured git repository only based on URL, without checking if the checked out branch is the needed one.