From 8d8c462bc6fa0b18bcafee3a0db64cb00438d99d Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Tue, 24 Nov 2009 09:28:43 -0800 Subject: [PATCH] [NEW] Script to clone a git repo on nofxwiki.net. --- clonegit-nofxwiki.net | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 clonegit-nofxwiki.net diff --git a/clonegit-nofxwiki.net b/clonegit-nofxwiki.net new file mode 100755 index 0000000..98b2936 --- /dev/null +++ b/clonegit-nofxwiki.net @@ -0,0 +1,8 @@ +#!/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