From 8f58c1c5ca2b4b8905d93b219317877fe75c54c5 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 6 Jan 2020 10:59:50 +0100 Subject: add git-bip to create repos on bip --- bin/git-bip | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 bin/git-bip (limited to 'bin/git-bip') diff --git a/bin/git-bip b/bin/git-bip new file mode 100755 index 0000000..2b1245e --- /dev/null +++ b/bin/git-bip @@ -0,0 +1,7 @@ +#!/bin/sh + +# create a git repo on bip + +ssh git@bip.im git init --bare "${1%.git}.git" + +[ "$2" ] && ssh git@bip.im "echo \"$2\" > ${1%.git}.git/description" -- cgit v1.2.3 From e520c17d913b0d9edfe20ebf65d28baf81518542 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Mon, 6 Jan 2020 11:07:39 +0100 Subject: git-bip: display usage --- bin/git-bip | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/git-bip') diff --git a/bin/git-bip b/bin/git-bip index 2b1245e..1f38fec 100755 --- a/bin/git-bip +++ b/bin/git-bip @@ -1,6 +1,8 @@ -#!/bin/sh +#!/bin/sh -e -# create a git repo on bip +case $1 in +(-h|--help) echo "Usage: git-bip repo [desc] # create a git repo on bip"; exit ;; +esac ssh git@bip.im git init --bare "${1%.git}.git" -- cgit v1.2.3