traduttore icon indicating copy to clipboard operation
traduttore copied to clipboard

Use more unique temp folder for Traduttore

Open swissspidy opened this issue 6 years ago • 2 comments

Just so there aren't any conflicts when there are multiple Traduttore installs on a server.

Code in question:

https://github.com/wearerequired/traduttore/blob/c0855ad5f6763d899d9ebaeee5be4d1b54435f84/inc/Loader/Git.php#L76-L90

swissspidy avatar Oct 26 '18 08:10 swissspidy

Some providers like GitHub support both Git and SVN for the same repo. For this reason we should include the vcs type in the path

swissspidy avatar Oct 29 '18 21:10 swissspidy

It would be nice if everything would be under /tmp/traduttore or something.

As for the VCS type, this could be a sub folder of the repository dir, e.g. /tmp/traduttore/github-wearerequired-traduttore/git or something.

swissspidy avatar Nov 22 '18 10:11 swissspidy