remove old scripts for hosting git projects on nofxwiki.net
This commit is contained in:
parent
2f255069f5
commit
d85cab73d2
2 changed files with 0 additions and 23 deletions
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
# if no 2nd arg call again with first arg as second arg
|
||||
if [[ x"$2" = x ]]; then
|
||||
"$0" "$1" "$1"
|
||||
else
|
||||
git clone "ssh://nofxwiki.net/var/git/$1" "$2"
|
||||
fi
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
function die() {
|
||||
echo "[error] $*"
|
||||
exit 1
|
||||
}
|
||||
|
||||
ssh nofxwiki.net "/home/sjs/bin/mkgit $1" || die "Can't create remote git repo"
|
||||
if git remote show origin >/dev/null 2>&1; then
|
||||
git remote rm origin
|
||||
fi
|
||||
git remote add -m master origin ssh://nofxwiki.net/var/git/$1.git || die "Can't add remote origin"
|
||||
git config branch.master.remote origin || die "Can't set master's branch remote origin"
|
||||
git config branch.master.merge refs/heads/master || die "Can't set master's branch merge"
|
||||
git push origin master || die "Can't push to remote repo"
|
||||
Loading…
Reference in a new issue