git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
68db2f2
Branches
Tags
master
ticket
webinterface.git
modules
gitolite
data
initialize.sh
First strike: list repositories from a gitolite-admin repo
bernd
commited
68db2f2
at 2011-12-21 16:51:49
initialize.sh
Blame
History
Raw
#!/bin/bash if [ -f "sshkey" ] ; then echo 'SSH-Key exists!' exit 1 fi WORKDIR="$(realpath "$(dirname ${0})")" ssh-keygen -t ecdsa -P '' -f "${WORKDIR}/sshkey" echo 'Paste the following public key in gitolite-config and allow it to access the gitolite-admin repository!' echo '----------------------' cat sshkey.pub echo '----------------------' echo -n 'Press ENTER when ready...' read export GIT_SSH="${WORKDIR}/ssh-wrapper.sh" git clone "git@git.$(hostname -d):gitolite-admin" cd "gitolite-admin" echo 'Probing pull...' git pull echo 'Probing push...' git push echo 'Everything set up!'