blob: b846a698aaa97fc4cd1bb7bdaf44625d7711fb21 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
currentDir=`pwd`
targetDir="`basename \"$currentDir\" | tr "[:upper:]" "[:lower:]"`.git"
ssh zx2c4.com "\
cd ~/git.zx2c4.com;\
mkdir \"$targetDir\";\
cd \"$targetDir\";
git init --bare;\
echo \"$1\" > description;\
mv hooks/post-update.sample hooks/post-update;\
chmod +x hooks/post-update"
echo "[remote \"origin\"]
url = zx2c4.com:git.zx2c4.com/$targetDir
fetch = +refs/heads/*:refs/remotes/origin/*
[branch \"master\"]
remote = origin
merge = refs/heads/master" >> .git/config
git push --all
|