Java Project Git Tag Changed From master to NO-HEAD [message #1584958] |
Sun, 25 January 2015 21:52  |
Eclipse User |
|
|
|
I have a number of Java projects that have been added to eGit. The git repository for each project resides in a directory GitRepositories. For a project Foo, the git repository is located in .../GitRepositories/Foo.
Many of the projects have a short history of commits after the initial commit. In the package explorer, after the projects were initially committed, eGit displays a short string next to the project (e.g. [Foo master]).
For some of my projects, the short string next to the project has now changed to [GitRepositories NO-HEAD]. When a change is made to a file in the project, you no longer get the > next to the file when the code change is saved.
If you right click on the project, select Properties and select Git, the project would have originally displayed:
Git directory: .../GitRepositories/Foo/.git
Working directory: .../GitRepositories/Foo
Now some of the projects display:
Git directory: .../GitRepositories/.git
Working directory: .../GitRepositories
The directory structure of the git repositories has not changed.
Anybody know what has happened? More important, does anybody know how to get the project configured correctly?
|
|
|
|
|
Re: Java Project Git Tag Changed From master to NO-HEAD [message #1586662 is a reply to message #1586299] |
Mon, 26 January 2015 19:25  |
Eclipse User |
|
|
|
I have resolved the problem.
I right clicked on the project and used Team -> Disconnect to disconnect eGit from the repository. I then right clicked on the project and used Delete (without removing project content from disk!!!) to remove the project from Eclipse.
I then used the Eclipse File menu to import a Git project from an existing local repository (.../GitRepositories/Foo/.git).
Once I had done this for all of my projects, I deleted the empty .../GitRepositories/.git directory that had mysteriously been created.
I still don't know how the problem occurred in the first place. I had upgraded to Luna recently, but I am not sure if I had done this near the time when this problem showed up.
|
|
|
Powered by
FUDForum. Page generated in 0.06756 seconds