ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
186 stars 37 forks source link

Custom temp folder #147

Open tommyblue opened 12 years ago

tommyblue commented 12 years ago

With these changes the user can select a different temp folder to manage the gitolite repository. If this custom option is ignored, the old behaviour still works and the plugin uses Dir.tmpdir. In my case this patch is mandatory because the /tmp folder in my server is mounted with the noexec flag and the plugin doesn't work (it causes a 50x error).

Another little fix let this plugin work with ruby 1.9.3

kubitron commented 12 years ago

Hello. I am not sure whether anyone is answering issues on this list any more.

However, I've the latest commit on my version of the plugin (https://github.com/kubitron/redmine_git_hosting) has configurable paths for scripts and temporary files.

Two things to note:

(1) The scripts are separated out from data (there are two path settings, one for data and one for scripts),

(2) The default location for scripts in my version of the plugin is the ./bin directory under the plugin root. You can move them wherever you like, however. (The README has a lot of info about handling the scripts).

Note that my version of the plugin has a bunch of other advantages (and fixes). If you choose to use my version of the plugin, I will try to answer issues questions promptly...

p.s. My version also fixes the syntax errors you identified for compatibility with 1.9.3.