Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356633 - Failure to add files to repository if a .gitignore file is present
Summary: Failure to add files to repository if a .gitignore file is present
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RDT.sync (show other bugs)
Version: 5.0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: John Eblen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 15:13 EDT by John Eblen CLA
Modified: 2011-09-02 15:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.