Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Team->Share Project->Git sometimes doesn't create .gitignore in project root
Team->Share Project->Git sometimes doesn't create .gitignore in project root [message #1385125] Wed, 04 June 2014 09:20 Go to next message
Felix Dorner is currently offline Felix Dorner
Messages: 203
Registered: March 2012
Senior Member
Hi,

I just Team->Share Project->Git for a lot of plug-in projects. The
projects were located in the workspace and the share operation moves
them to the git repo and reconnects them to the workspace. Now, for most
of the projects, EGit seems to create a .gitignore (Containing one line
bin/, great). Now the strange thing is that for some of the projects the
..gitignore file is not created. I try to find out why. Hints?

Thanks
Felix
Re: Team->Share Project->Git sometimes doesn't create .gitignore in project root [message #1385129 is a reply to message #1385125] Wed, 04 June 2014 09:25 Go to previous messageGo to next message
Felix Dorner is currently offline Felix Dorner
Messages: 203
Registered: March 2012
Senior Member
On 04/06/2014 15:20, Felix Dorner wrote:
> Hi,
>
> I just Team->Share Project->Git for a lot of plug-in projects. The
> projects were located in the workspace and the share operation moves
> them to the git repo and reconnects them to the workspace. Now, for most
> of the projects, EGit seems to create a .gitignore (Containing one line
> bin/, great). Now the strange thing is that for some of the projects the
> .gitignore file is not created. I try to find out why. Hints?

Here's one: When I initially imported the projects into the workspace,
some of them come with a bin folder, some don't. If the bin folder
exists prior to importing the project, the .gitignore file isn't
created. So there seems to be some 'clever' logic that differentiates
between different kinds of 'bin' folders.

Felix
Re: Team->Share Project->Git sometimes doesn't create .gitignore in project root [message #1385134 is a reply to message #1385129] Wed, 04 June 2014 09:58 Go to previous messageGo to next message
Felix Dorner is currently offline Felix Dorner
Messages: 203
Registered: March 2012
Senior Member
On 04/06/2014 15:25, Felix Dorner wrote:
> On 04/06/2014 15:20, Felix Dorner wrote:
>> Hi,
>>
>> I just Team->Share Project->Git for a lot of plug-in projects. The
>> projects were located in the workspace and the share operation moves
>> them to the git repo and reconnects them to the workspace. Now, for most
>> of the projects, EGit seems to create a .gitignore (Containing one line
>> bin/, great). Now the strange thing is that for some of the projects the
>> .gitignore file is not created. I try to find out why. Hints?
>
> Here's one: When I initially imported the projects into the workspace,
> some of them come with a bin folder, some don't. If the bin folder
> exists prior to importing the project, the .gitignore file isn't
> created. So there seems to be some 'clever' logic that differentiates
> between different kinds of 'bin' folders.

Manually marking the 'bin' folders as derived creates the .gitignore
file. Happy clicking.

Felix
Re: Team->Share Project->Git sometimes doesn't create .gitignore in project root [message #1385448 is a reply to message #1385134] Fri, 06 June 2014 09:37 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 556
Registered: July 2009
Senior Member
This automatic detection depends on events fired by Eclipse [1], there may be situations where they aren't fired.
You may try to run a complete rebuild from scratch in Eclipse to provoke resending these events.

[1] http://git.eclipse.org/c/egit/egit.git/tree/org.eclipse.egit.core/src/org/eclipse/egit/core/Activator.java#n358
Previous Topic:Jgit Servlet
Next Topic:Extracting information of remote repository
Goto Forum:
  


Current Time: Wed Aug 20 22:37:03 EDT 2014

Powered by FUDForum. Page generated in 0.01623 seconds