LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-28-2012, 01:38 PM   #1
Astral Projection
Member
 
Registered: Apr 2006
Location: Parallel Universe
Posts: 49

Rep: Reputation: 15
Git repo sharing with multiple users problem.


Hello, I'm struggling to setup Git on my server. Basically all I want is several users to be able to commit, one user to push the update and that's it. I avoided using gitosis or gitolite and I followed this tutorial.
So I created first user, generated ssh key, copied it to authorized_keys in /root/.ssh/ and made a repo. For this particular user everything is OK. The problem starts when I add the second user. I did the same procedure as for the first user. I initialized repo with --shared parameter, added both first and second user to the same "dev" group. Chgrp the repo folder to dev group recursively and chmod to "swX" for the group. When I try to clone the repo with second user I get:

Code:
fatal: 'sfilma.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Here's git config:
Code:
cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        sharedrepository = 1
[receive]
        denyNonFastforwards = true
I tried changing sharedrepository to "true" but that doesn't work either. I cannot understand why this doesn't work and what I did wrong. Any help please? Thanks!
 
Old 08-29-2012, 11:03 AM   #2
Astral Projection
Member
 
Registered: Apr 2006
Location: Parallel Universe
Posts: 49

Original Poster
Rep: Reputation: 15
bump.
 
  


Reply

Tags
ubuntu


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Trying to split a large SVN repo into one git repo. Ian John Locke II Linux - Software 1 01-30-2012 08:19 AM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
Best way to automate copying of Git repo to subversion repo? jceipek Linux - Server 0 03-15-2011 02:42 AM
multiple users sharing same /home ? emamarro Linux - Newbie 8 02-18-2010 03:28 AM
Sharing one home directory with multiple users cwolf78 Linux - Software 11 05-08-2005 06:58 PM


All times are GMT -5. The time now is 01:44 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration