Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356633

Summary: Failure to add files to repository if a .gitignore file is present
Product: [Tools] PTP Reporter: John Eblen <jdeblen1>
Component: RDT.syncAssignee: John Eblen <jdeblen1>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 5.0.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description John Eblen CLA 2011-09-02 15:13:28 EDT
If a .gitignore file is in the user's directory (and it lists a real, non-filtered file), we receive the following error on project creation:

The following paths are ignored by one of your .gitignore files:
{the file name}
Use -f if you really want to add them.
fatal: no files added

Since no files are added, no files are downloaded to the local workspace.
Comment 1 John Eblen CLA 2011-09-02 15:24:45 EDT
This was a simple fix. Adding the -f flag to the "git add" command causes it to ignore the .gitignore file. Fixed in HEAD and PTP_5_0.