Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Git Repositories inside OpenProject

Git Repositories inside OpenProject

Added by Klaus Kastler over 9 years ago

Hi,

I’m clompletly new to OpenProject and I just installed a fresh Version 5.0.9

Now I’m playing a little bit with them in a VM and try also to use the Repository Plugin.
But I can’t see how can I configure the users…

in my project repository I can create a new git repository which is under the address http://10.0.0.20/git/test.git
if I push now from my local PC a repository like git push http://10.0.0.20/git/test.git it will be uploaded and I can see it in Project details.

But now the big question how can I make this secure because now it is public…

Hope you can help me.

Thanks, djonny


Replies (9)

RE: Git Repositories inside OpenProject - Added by Robin Wagner over 9 years ago

Hi Klaus,

the access to the project repository is determined by the roles and permissions in your OpenProject instance.
If the project is private (set in project settings (tab “Information”)) only project members with the permission to view repositories can see the files committed to the repository and only users who have the permission to commit changes can contribute / change files on the repo. (The only exception are admins who by default have more permissions.)
The permissions are added to roles which you can assign to users you add to the project in which the repository is located (in “Administration” > “Roles and permissions”).

RE: Git Repositories inside OpenProject - Added by Klaus Kastler over 9 years ago

Hello Robin,

thanks for your answer.

The Problem is that the Project is private but I don’t get a password prompt…

username@hostname ~/gittest $ git clone http://10.0.0.20/git/test.git
Nach »test« wird geklont
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Verbundenheit wird überprüft … Fertig.

Its a little bit crazy…

RE: Git Repositories inside OpenProject - Added by Robin Wagner over 9 years ago

Hello Klaus,

could you log out of your OpenProject instance and try again?
It should then not be possible to make changes in the private project.

RE: Git Repositories inside OpenProject - Added by Klaus Kastler over 9 years ago

Hi Robin,

it’s the same result…
also a push is possible.

I tried also a restart

RE: RE: Git Repositories inside OpenProject - Added by Enno Gröper about 9 years ago

I have the same problem.
Could it be, because I’m using http on my test instance (SSL disabled)?
There seems to be no authentication for cloning / pushing.

RE: Git Repositories inside OpenProject - Added by Oliver Günther about 9 years ago

Hey everyone,

can you verify that my response from this thread fixes your problem?

https://community.openproject.org/topics/6019

Best,
Oliver

RE: Git Repositories inside OpenProject - Added by Enno Gröper about 9 years ago

Hi Oliver,

Oliver Günther wrote:

can you verify that my response from this thread fixes your problem?

https://community.openproject.org/topics/6019

I now switched to SSL. That didn’t help.
But Removing “Require all granted” from addons/apache2/includes/vhost/git_smart_http.conf helped.
So if your fix is Subversion only, please fix the problem for git, too.

RE: Git Repositories inside OpenProject - Added by Oliver Günther about 9 years ago

Thanks Enno, you’re indeed right that I was applying an incomplete fix. I’m rebuilding the Repository addon now. If you pull the latest package and re-run the configuration (It will not change any configuration you’ve made in the past),
the problem should be resolved.

Sorry for your troubles!

Best,
Oliver

RE: Git Repositories inside OpenProject - Added by Enno Gröper about 9 years ago

Thanks for fixing this so quickly.

(Yes, I upgraded to the latest version, that includes the fix.)

  • (1 - 9/9)
Loading...