Need some Eclipse/EGit help

Status
Not open for further replies.

Sunner

Ars Praefectus
4,994
Subscriptor++
This is probably going to sound very confusing(be gentle, I'm no developer), but here goes...

I have a bunch of Puppet modules in Eclipse, one project per module. I want these to go into a remote git repository, one repo per module. This part is easy.
I want to be able to check them out on another box, except I can't figure out how to get the directory hierarchy right. To illustrate:
Local box:
/home/sunner/eclipse/modules/Module[1-9]

Remote server(not the git repo, the server that check out from the git repo, I'll just refer to it as "remote server"):
/whatever/modules/Module[1-9]

Doing this manually with command line git is easy enough, I just "git init" .../modules/Module1 for example, and then push that to /git/Module1.git on the git repo server.
Eclipse/EGit however wants to do the git init one level up, so instead of pushing the contents of Module1 straight into the repo, I push the directory as well, so when I clone on the remote server I end up with "/whatever/modules/Module1/Module1/contents".

Basically I just want Eclipse/EGit to push the contents of the project directory rather than the entire directory itself, so I can clone and get "/whatever/modules/Module1/contents".

Trying to wrap my head around Eclipse on a Monday...
 

Sunner

Ars Praefectus
4,994
Subscriptor++
Bhelyer":1dahdlqr said:
I can't help, except to add a negative anecdote that every time I try EGit, it eventually corrupts the repository. Since I'm not a silly person, it's just a matter of cloning from wherever I host the repo (usually GitHub), but I wouldn't trust it again.

That sounds less than comforting. Backups and redundant repos are good and all, but this sounds like something that would wait to happen until I really don't want it to. Maybe I'll just stick to command line Git after all.
Thanks for the input.
 
Status
Not open for further replies.