Aaron Gray wrote:Is /pub/git/experimental set to be a shared repo? What is the output
> I have set '/pub/git/expermental' to 'git:gitgroup'
>
> and added 'gitgroup' as a group to 'ang'
>
> remotely this fails :-
>
> ang AMD2500-PC ~/git/experimental
> $ git push ssh://git.cybercomms.org/pub/git/experimental/.git
> ang git cybercomms org's password:
> Counting objects: 3, done.
> Compressing objects: 100% (2/2), done.
> Writing objects: 100% (2/2), 234 bytes, done.
> Total 2 (delta 1), reused 0 (delta 0)
> error: insufficient permission for adding an object to repository database
> ./obj
> ects
> fatal: failed to write object
> error: unpack failed: unpacker exited with error code
> To ssh://git.cybercomms.org/pub/git/experimental/.git
> ! [remote rejected] master -> master (n/a (unpacker error))
> error: failed to push some refs to 'ssh://
> git.cybercomms.org/pub/git/experimenta
> l/.git'
> But if I set ''/pub/git/expermental' to 'ang:ang' then it works.
of:
$ git --git-dir /pub/git/experimental config core.sharedRepository
It should report true. If not, set that via:
>>>> $ git --git-dir /pub/git/experimental config core.sharedrepository true
>>>> # Tell git the repository is shared
Then check that you've set all the permissions as outlined below:
>>>> # Set proper group ownership
>>>> $ chgrp -R gitgroup /pub/git/expermental
>>>>
>>>> # Make all directories setgid
>>>> $ find /pub/git/expermental -type d -exec chmod g+s {} \;
>>>>>>>> $ find /pub/git/expermental/ \( -type f -o -type d \) -a \
>>>> # Ensure files and dirs are group writable
>>>> \( -perm /u+w -a ! -perm /g+w \) \Lastly, it's generally a good idea to only ever push to a 'bare'
>>>> xargs chmod g+w
repository, i.e. a repository that has no working directory associated
with it. This isn't related to your permissions problem, but it is
something that can bite you later, so it's worth mentioning. When you
create a remote repository, it should generally be done using either:
$ git clone -q --bare some/git/url /path/to/new/repo.git
or
$ git --git-dir /path/to/new/repo.git --bare init --shared=true
By convention, bare repositories end with .git.
--
Todd OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Living in a vacuum sucks.
-- Adrienne E. Gusoff
--
fedora-list mailing list
fedora-list redhat com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines