Forum: 
Tags: 

redmine and git - making new repositories

bob's picture

 Hi

Look I couldn't find how to place this as a comment or anything on the Redmine appliance page, so I'll put it here, to save anyone else a few hours of head banging....

If you wanna make a new repo that uses git for a new project in Redmine, after setting up the git repo manually, and in anyway way you like, you must do these two things, if you want to be able to access it using the git:// protocol:

#touch /srv/repos/git/newRepoName/.git/git-daemon-export-ok

and

#ln -s /srv/repos/git/newRepoName/.git /var/cache/git/newRepoName.git

 

then it works as expected.

 

turnkey is awesome. saved me so much time overall, setting up a redmine server.  I'm almost in full use of it now, and I only just booted today.  I compare this to when I first set up Trac from scratch... man that took ages.... or maybe I just suck :P~

bob's picture

 if you guys enabled wiki writing, I could maybe make a start on doing some basic docs like this for people ?

aheinrich's picture

thanks @bob - Was into my 2nd hour of headbanging before I found this post. Added the git-daemon-export-ok file, and public repo works like a charm!

Oh, and Turnkey = Amazing!

Jeremy Davis's picture

I have just added this info to a new page in the Community Documentation (Wiki), in the "Appliance-specific notes" section, under Redmine. See the entry here.

Hareton's picture

I have downloaded the Turnkey's redmine VM and it's running finr (I can create new projects and wikis and document lists etc etc). only thing is I can't make it to use my new git repos. I found your article by shared files search, but it didn't help. any help appreciated.

Rapid Prototyping's picture

I must say that I have been having a hard time making a new repo using the GIT and I was planning to implement the same for a new project in Redmine like you said. I guess adding these made it work. I am glad that you have helped me in this regard. I should also say that the turnkey did save me some valuable time while setting up the redmine server. And when compared with trac, this is light-years ahead!

Post new comment