summaryrefslogtreecommitdiff
path: root/share/keyringer/git
diff options
context:
space:
mode:
Diffstat (limited to 'share/keyringer/git')
-rwxr-xr-xshare/keyringer/git16
1 files changed, 16 insertions, 0 deletions
diff --git a/share/keyringer/git b/share/keyringer/git
new file mode 100755
index 0000000..5e98105
--- /dev/null
+++ b/share/keyringer/git
@@ -0,0 +1,16 @@
+#!/bin/bash
+#
+# Git wrapper.
+#
+
+BASEDIR="$1"
+CWD="`pwd`"
+
+if [ -z "$BASEDIR" ]; then
+ echo "Usage: `basename $0` <basedir> [arguments]"
+ exit 1
+fi
+
+shift
+mkdir -p $BASEDIR && cd $BASEDIR && git $*
+cd $CWD