Re: Functional GIT on F11 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/7/22 Todd Zullinger <tmz@xxxxxxxxx>
Aaron Gray wrote:
> 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@xxxxxxxxxxxxxxxxxx'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.

Is /pub/git/experimental set to be a shared repo?  What is the output
of:

   $ git --git-dir /pub/git/experimental config core.sharedRepository

It should report true.  If not, set that via:

>>>>     # Tell git the repository is shared
>>>>     $ git --git-dir /pub/git/experimental config core.sharedrepository true
 
Okay that was needed Todd !
 

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 {} \;
>>>>
>>>>     # Ensure files and dirs are group writable
>>>>     $ find /pub/git/expermental/ \( -type f -o -type d \) -a \
>>>>                           \( -perm /u+w -a ! -perm /g+w \) \
>>>>         xargs chmod g+w

Lastly, it's generally a good idea to only ever push to a 'bare'
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.
 
 
That answers a long unanswered question, thanks !
 
Well, looks like thats got most of my problems and queries solved.
 
Just gotta remember how to do branches and work out how to update them against a moving svn project !
 
Thanks very, vrey much,
 
Aaron
 
 

--
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Living in a vacuum sucks.
   -- Adrienne E. Gusoff


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux