Deploying from Git: Some gitignore files are being deleted

Bug #841179 reported by Robinson Tryon
6
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/images/.gitignore (Permission denied)
error: git checkout-index: unable to create file www/uploads/thumbs/.gitignore (Permission denied)
D www/uploads/images/.gitignore
D www/uploads/thumbs/.gitignore

Revision history for this message
Robinson Tryon (colonelqubit) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.