Deploying from Git: Some gitignore files are being deleted
Bug #841179 reported by
Robinson Tryon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
metadatagames |
New
|
Undecided
|
Unassigned |
Bug Description
To make it easy to update the install, I'll often directly deploy a git checkout.
Something in the mg server is deleting .gitignore files below the /uploads/ directory. This shows up as a change in Git, and is hopefully something we can avoid.
Here's how it looks on the command line:
error: git checkout-index: unable to create file www/uploads/
error: git checkout-index: unable to create file www/uploads/
D www/uploads/
D www/uploads/
To post a comment you must log in.
SOLUTION:
I suggest two possible ways of dealing with this problem
1) Don't put (these particular) empty directories into git. Just create them on the fly when we install the server.
(this might not be possible for chmod'ing reasons...)
2) Update the code to leave the .gitignore files alone
3) Use some other placeholder files (how about one default image and one default thumbnail?) instead of .gitignore files.
Git doesn't care what you put in a directory -- it just cares if the directory is empty or not. If we just ship with a default image and its thumbnail, then this might solve the whole problem.