summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitaram Chamarty <sitaram@atc.tcs.com>2011-11-15 10:03:01 +0530
committerSitaram Chamarty <sitaram@atc.tcs.com>2011-11-15 10:03:01 +0530
commitbe8d5f448796e617b55ced239aa1f048cfa3919d (patch)
tree630a4e24345e8d684d62f1ad8765707445329dce
parentminor oops in previous commit (would fail on perl older than 5.10 or so) (diff)
downloadgitolite-gentoo-be8d5f448796e617b55ced239aa1f048cfa3919d.tar.gz
gitolite-gentoo-be8d5f448796e617b55ced239aa1f048cfa3919d.tar.bz2
gitolite-gentoo-be8d5f448796e617b55ced239aa1f048cfa3919d.zip
hide output of commands to check for existence of valid user.* keys
could be confusing to people, and is not at all needed to be shown.
-rwxr-xr-xsrc/gl-setup4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gl-setup b/src/gl-setup
index e7f4385..3a6c04b 100755
--- a/src/gl-setup
+++ b/src/gl-setup
@@ -128,8 +128,8 @@ gl-compile-conf -q
cd $HOME; cd $REPO_BASE/gitolite-admin.git
GIT_WORK_TREE=$GL_ADMINDIR; export GIT_WORK_TREE
git add conf/gitolite.conf keydir
- git config --get user.email || git config user.email $USER@`hostname`
- git config --get user.name || git config user.name "$USER on `hostname`"
+ git config --get user.email >/dev/null || git config user.email $USER@`hostname`
+ git config --get user.name >/dev/null || git config user.name "$USER on `hostname`"
git diff --cached --quiet 2>/dev/null || git commit -am start
)