mirror of
https://github.com/wahyd4/gitolite.git
synced 2026-08-09 21:15:52 +10:00
easy install: suppress that misleading "fatal"
get rid of the "fatal: No HEAD commit to compare with (yet)" message
This commit is contained in:
+1
-1
@@ -412,7 +412,7 @@ setup_pta() {
|
||||
echo "cd $REPO_BASE/gitolite-admin.git
|
||||
PATH=$PATH:$GIT_PATH
|
||||
GIT_WORK_TREE=$GL_ADMINDIR git add conf/gitolite.conf keydir
|
||||
GIT_WORK_TREE=$GL_ADMINDIR git diff --cached --quiet || GIT_WORK_TREE=$GL_ADMINDIR git commit -am start
|
||||
GIT_WORK_TREE=$GL_ADMINDIR git diff --cached --quiet 2>/dev/null || GIT_WORK_TREE=$GL_ADMINDIR git commit -am start
|
||||
" | ssh -p $port $user@$host
|
||||
|
||||
# MANUAL: now that the admin repo is created, you have to set the hooks
|
||||
|
||||
Reference in New Issue
Block a user