Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for gitosis in ubuntu 12.04 (which didn't work before the fix) #2

Closed
jmcabo opened this issue Dec 20, 2012 · 1 comment
Closed

Comments

@jmcabo
Copy link

jmcabo commented Dec 20, 2012

Hello!
In Ubuntu 12.04 the hooks didn't work. Pushing to the gitosis-admin repo didn't
refresh the config file or the ssh keys.

There were two problems with the post-update hook for the gitosis-admin repo.

  1. It wasn't executable, and needed chmod +x
         chmod +x  <gitosis_home>/repositories/gitosis-admin.git/hooks/post-update
  1. It used old git commands, which are found now in '/usr/lib/git-core' as symlinks.
    The fix for that is to add:
         PATH=$PATH:/usr/lib/git-core
         export PATH

to the first lines of the 'post-update' hook.

After this, it works like a charm.
Please include the fix if you can, so that other people can use gitosis in ubuntu.
Thanks so much for gitosis!!!!

@tv42
Copy link
Owner

tv42 commented Jan 22, 2015

Should be covered by these:

commit e7d8875
Author: Tommi Virtanen tv@eagain.net
Date: 2015-01-22 10:43:30 -0800

Use dashless form for git update-server-info

commit 28dfea5
Author: Tommi Virtanen tv@eagain.net
Date: 2015-01-22 10:39:26 -0800

Make sure admin repo post-update hook is executable

@tv42 tv42 closed this as completed Jan 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants