Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » import from git fails
import from git fails [message #871354] Sat, 12 May 2012 06:18 Go to next message
thorsten meier is currently offline thorsten meier
Messages: 7
Registered: April 2012
Junior Member
hi,


ive just created a project on a linux installation and later imported it on a windows eclipse.

now on a third machine importing the project doesnt work, its all fine until i can choose between

* import existing project
* use the new project wizard
* import as a general project


choosind the first option tells me on the next page that theres no project to import
(this worked the on the windows host)


[b]what i did:[\b]
file -> import -> git -> projects from git -> uri

i only used these three fields:
hostname = gitoliteeclipse
repository path = labor1
protocol = ssh

the rest is defined in ~/.ssh/config
Host gitoliteeclipse
Hostname 10.8.1.18
IdentitiesOnly yes
User julius
IdentityFile /home/juliusnew/.ssh/id_rsa.eclipse



all three machines use eclipse for java developers SR2
what could be the problem?




doing a git clone from the console i get these files:
git clone gitoliteeclipse:labor1
Cloning into 'labor1'...
remote: Counting objects: 11, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 11 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (11/11), 3.18 KiB, done.

find labor1/
labor1/
labor1/Prog-Aufgabe1
labor1/Prog-Aufgabe1/src
labor1/Prog-Aufgabe1/src/de
labor1/Prog-Aufgabe1/src/de/proglabor
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/Spiel.java
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/ISpiel.java
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/Spielfigur.java
labor1/Prog-Aufgabe1/src/de/proglabor/aufgabe1/Bauer.java
labor1/.git
labor1/.git/branches
labor1/.git/logs
labor1/.git/logs/refs
labor1/.git/logs/refs/heads
labor1/.git/logs/refs/heads/master
labor1/.git/logs/HEAD
labor1/.git/packed-refs
labor1/.git/info
labor1/.git/info/exclude
labor1/.git/refs
labor1/.git/refs/remotes
labor1/.git/refs/remotes/origin
labor1/.git/refs/remotes/origin/HEAD
labor1/.git/refs/heads
labor1/.git/refs/heads/master
labor1/.git/refs/tags
labor1/.git/description
labor1/.git/objects
labor1/.git/objects/info
labor1/.git/objects/pack
labor1/.git/objects/pack/pack-b828f9c83301c2285aba1c3e756996207a436d35.idx
labor1/.git/objects/pack/pack-b828f9c83301c2285aba1c3e756996207a436d35.pack
labor1/.git/hooks
labor1/.git/hooks/applypatch-msg.sample
labor1/.git/hooks/prepare-commit-msg.sample
labor1/.git/hooks/pre-rebase.sample
labor1/.git/hooks/pre-applypatch.sample
labor1/.git/hooks/commit-msg.sample
labor1/.git/hooks/update.sample
labor1/.git/hooks/post-update.sample
labor1/.git/hooks/pre-commit.sample
labor1/.git/config
labor1/.git/index
labor1/.git/HEAD

[Updated on: Sat, 12 May 2012 06:38]

Report message to a moderator

Re: import from git fails [message #892378 is a reply to message #871354] Wed, 27 June 2012 19:03 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 556
Registered: July 2009
Senior Member
You didn't commit the .project file, so it's not part of the git repository.
When you clone it to another repository only the files tracked in the git repository
are copied to the new clone.
Previous Topic:Flash Builder (based on Eclipse 3.7.0) egit wrong installation
Next Topic:egit ssh failure
Goto Forum:
  


Current Time: Wed Aug 20 16:39:45 EDT 2014

Powered by FUDForum. Page generated in 0.01635 seconds