From 022dfee473c804af2f3bf01065a49250d2074db2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 27 Feb 2014 18:41:16 -0300 Subject: Create config and doc repositories --- share/hydra/init | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'share') diff --git a/share/hydra/init b/share/hydra/init index 5ac6f82..ad2f065 100755 --- a/share/hydra/init +++ b/share/hydra/init @@ -46,6 +46,25 @@ echo "$HYDRA=\"$BASEDIR\"" >> $CONFIG if [ ! -z "$REMOTE" ]; then echo "Using $REMOTE as private gitolite address." echo "PRIVATE_REPOS=$REMOTE" >> $PREFERENCES +else + # TODO: setup remotes and README content + # No remote was given, so we assume this is a shiny new hydra! + mkdir $BASEDIR/{config,doc} + ( + cd $BASEDIR/config + touch README.md + git init + git add . + git commit -m "Initial import" + ) + + ( + cd $BASEDIR/doc + touch README.md + git init + git add . + git commit -m "Initial import" + ) fi # Sync repositories -- cgit v1.2.3