Project

General

Profile

GIT integration: which repository should I create?

Added by Sandro Simonetti about 10 years ago

I am trying to integrate GIT into Redmine but I feel a bit confused.

here it is written to clone the repository with --bare:
http://www.redmine.org/projects/redmine/wiki/RedmineRepositories

here it is written to clone the repository as a mirror and not bare:
http://www.redmine.org/projects/redmine/wiki/HowTo_Easily_integrate_a_%28SSH_secured%29_GIT_repository_into_redmine

while here there is a better explaination (--bare should be used for old git version):
http://www.redmine.org/projects/redmine/wiki/HowTo_keep_in_sync_your_git_repository_for_redmine

I am running Redmine 2.5.1 on Xubuntu 14.04, git version: 1.9.1

Which specific repository should I create locally?

I have my repository main folder in /var/redmine/git_repositories for which I set the permission to www-data:www-data. The child folders (= each single repository folder) have now root:root permission, should I extend them to www-data:www-data also?

A big thank you in advance


Replies (1)

RE: GIT integration: which repository should I create? - Added by Martin Denizet (redmine.org team member) about 10 years ago

Hello Sandro,

I think you're confused about 2 things:
  • Git repository with upstream source (mirror, convenient to have a local network copy of a big repository)
  • Git repository with no upstream, in general it means Redmine's git is the main copy

I suggest you're trying to archive the second option.
FYI, I was not able to setup Git Smart HTTP on Ubuntu 14.04 (Apache 2.4), the first is #16948 and the second I was not able to identify it yet. I didn't look so much into it because my Redmines run on Debian.
I'd be interested to know if you get it to work.

For the permissions, yes, you should do something like:

chown -R www-data:www-data /var/redmine/git_repositories

    (1-1/1)