rc, pta-hook/doc: don't assume $HOME of 'git' user is /home/git
(Thanks to Jerome Arbez-Gindre)
This commit is contained in:
parent
96fa0da946
commit
8eefc036e0
|
@ -27,7 +27,7 @@ $REPO_UMASK = 0077; # gets you 'rwx------'
|
|||
# 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:
|
||||
|
||||
$PROJECTS_LIST = "/home/git/projects.list";
|
||||
$PROJECTS_LIST = $ENV{HOME} . "/projects.list";
|
||||
|
||||
# --------------------------------------
|
||||
|
||||
|
|
|
@ -74,8 +74,8 @@ make the same changes below.
|
|||
repos they play havoc with my git commands, so this is how I do it)
|
||||
|
||||
cd ~/repositories/gitolite-admin.git
|
||||
GIT_WORK_TREE=/home/git/.gitolite git add conf/gitolite.conf keydir
|
||||
GIT_WORK_TREE=/home/git/.gitolite git commit -am start
|
||||
GIT_WORK_TREE=$HOME/.gitolite git add conf/gitolite.conf keydir
|
||||
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
|
||||
should (1) make a forced checkout in the "live" config directory (which is
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# get this from your .gitolite.conf; and don't forget this is shell, while
|
||||
# that is perl :-)
|
||||
export GL_ADMINDIR=/home/git/.gitolite
|
||||
export GL_ADMINDIR=$HOME/.gitolite
|
||||
|
||||
# checkout the master branch to $GL_ADMINDIR
|
||||
GIT_WORK_TREE=$GL_ADMINDIR git checkout -f master
|
||||
|
|
Loading…
Reference in a new issue