rc, pta-hook/doc: don't assume $HOME of 'git' user is /home/git

(Thanks to Jerome Arbez-Gindre)
This commit is contained in:
Sitaram Chamarty 2009-10-23 10:23:06 +05:30
parent 96fa0da946
commit 8eefc036e0
3 changed files with 4 additions and 4 deletions

View file

@ -27,7 +27,7 @@ $REPO_UMASK = 0077; # gets you 'rwx------'
# part of the setup of gitweb is a variable called $projects_list (please see # part of the setup of gitweb is a variable called $projects_list (please see
# gitweb documentation for more on this). Set this to the same value: # gitweb documentation for more on this). Set this to the same value:
$PROJECTS_LIST = "/home/git/projects.list"; $PROJECTS_LIST = $ENV{HOME} . "/projects.list";
# -------------------------------------- # --------------------------------------

View file

@ -74,8 +74,8 @@ make the same changes below.
repos they play havoc with my git commands, so this is how I do it) repos they play havoc with my git commands, so this is how I do it)
cd ~/repositories/gitolite-admin.git cd ~/repositories/gitolite-admin.git
GIT_WORK_TREE=/home/git/.gitolite git add conf/gitolite.conf keydir GIT_WORK_TREE=$HOME/.gitolite git add conf/gitolite.conf keydir
GIT_WORK_TREE=/home/git/.gitolite git commit -am start GIT_WORK_TREE=$HOME/.gitolite git commit -am start
4. Now we have to setup the post-update hook for push-to-admin to work. The hook 4. Now we have to setup the post-update hook for push-to-admin to work. The hook
should (1) make a forced checkout in the "live" config directory (which is should (1) make a forced checkout in the "live" config directory (which is

View file

@ -2,7 +2,7 @@
# get this from your .gitolite.conf; and don't forget this is shell, while # get this from your .gitolite.conf; and don't forget this is shell, while
# that is perl :-) # that is perl :-)
export GL_ADMINDIR=/home/git/.gitolite export GL_ADMINDIR=$HOME/.gitolite
# checkout the master branch to $GL_ADMINDIR # checkout the master branch to $GL_ADMINDIR
GIT_WORK_TREE=$GL_ADMINDIR git checkout -f master GIT_WORK_TREE=$GL_ADMINDIR git checkout -f master