Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ptp-dev] Creating a synchronized project from a git repo




On Mon, Jul 7, 2014 at 9:53 PM, Beth Tibbitts <beth@xxxxxxxxxx> wrote:
I don't consider it a bug. How does new project wizard know that local location is within the git repo and not in the workspace dir?

It would be nice if if the directory-tree wouldn't be disabled if  "Use the New Project wizard" is selected. Then the user could select the location and the "New Project wizard" would be initialized with the correct location (same way it works correctly if one chooses "Import as general project". I suspect the reason they didn't implement it, is that you probably cannot create a "New Project wizard" and pass the project location.

Roland
 

...Beth

Beth Tibbitts


On Mon, Jul 7, 2014 at 9:44 PM, Roland Schulz <roland@xxxxxxx> wrote:
An alternative is to choose "Import as general project" instead of "Use the New Project wizard". But then one needs to convert the project twice to add both sync and C++. Thus your solution seems better.

You could open a bug against egit. As you said, one would expect the New project wizard to default to the correct folder. It seems to be an egit problem not a sync problem, because if you choose any other project type you also get the same unexpected behavior.

Roland


On Mon, Jul 7, 2014 at 8:40 PM, Beth Tibbitts <beth@xxxxxxxxxx> wrote:
I chalk this up to: git is used to cloning the entire repo. and this is cloning the repo under the covers but using only a single dir within the repo to populate this eclipse project.

...Beth

Beth Tibbitts


On Mon, Jul 7, 2014 at 8:37 PM, Steven R. Brandt <sbrandt@xxxxxxxxxxx> wrote:
On 07/07/2014 07:14 PM, Beth Tibbitts wrote:
So, to create a new C/C++ synchronized project fro a project in a git repo, just one project, and not cloning the whole repo, and doing it in ONE STEP, here is what I've figured out for a tutorial workflow.  Comments if you think something else is simpler or otherwise better:
1. Import Projects from git
2. enter g.. Git>Projects from Git
3. Clone URI, enter URI e.g. git@xxxxxxxxxx:reponame/ptp-tutorial.git;  Next,Next unless you know and want the default git local directory destination
4. Select "Use the New Project Wizard", Finish
5. Remote>Synchronized C/C++ Project
6. Enter a)project name
         b) UNCHECK Local directory/Use default location and enter 
                     /path/to/gitrepo/ptp-tutorial/PROJDIRNAME  
                              e.g. PROJDIRNAME = 'shallow' for our tutorial sample
         c)Remote directory: enter as usual, connection name (or create it with Browse) 
                  and remote dir
7. Project Type: Makefile project/Empty Project,  Remote Toolchain e.g. Linux GCC
            (Local toolchain optional) - Finish
8. Project is created

This was not intuitive to me, it took a couple of us several tries to figure this out
  (using git as source code repository, checking out project in the process)
The critical step is 6b), using the git local repo location instead default eclipse workspace location,
        AND specifying the project name, not the head of the repo

Anybody disagree? Trying to make tutorial slides.
John E, is there anything I missed?
 
This worked well for me. It seems awkward that it can't figure out the directory, but there's probably nothing to be done about it at this point.

Cheers,
Steve



...Beth

Beth Tibbitts


On Mon, Jul 7, 2014 at 5:14 PM, John Eblen <jeblen@xxxxxxx> wrote:
Hi Beth

It shouldn't matter whether the remote project uses git. You should
be able to create a new synchronized project that points to the remote
directory. I recommend "Empty Makefile project" for the project type.


John


On Mon, Jul 7, 2014 at 1:53 PM, Beth Tibbitts <beth@xxxxxxxxxx> wrote:
Roland/John,
How should the user create a synchronized project from a remote git repo?
I'm trying to write up a simple workflow, and the one closest to our tutorial workflow for CVS doesn't work...
it doesn't complain, it just ends up with an empty project.

...Beth

Beth Tibbitts

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev



_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev


_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev




--
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309

_______________________________________________
ptp-dev mailing list
ptp-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/ptp-dev




--
ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309

Back to the top