Skip to content

Commit

Permalink
rc, pta-hook/doc: don't assume $HOME of 'git' user is /home/git
Browse files Browse the repository at this point in the history
(Thanks to Jerome Arbez-Gindre)
  • Loading branch information
Sitaram Chamarty committed Oct 23, 2009
1 parent 96fa0da commit 8eefc03
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/example.gitolite.rc
Expand Up @@ -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";

# --------------------------------------

Expand Down
4 changes: 2 additions & 2 deletions doc/4-push-to-admin.mkd
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pta-hook.sh
Expand Up @@ -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
Expand Down

0 comments on commit 8eefc03

Please sign in to comment.