]> git.donarmstrong.com Git - bin.git/commitdiff
add git-newbare command
authorDon Armstrong <don@donarmstrong.com>
Thu, 2 Nov 2017 17:17:52 +0000 (10:17 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 2 Nov 2017 17:17:52 +0000 (10:17 -0700)
git-newbare [new file with mode: 0755]

diff --git a/git-newbare b/git-newbare
new file mode 100755 (executable)
index 0000000..d9c67a4
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+git init --bare "$1";
+cp "$1"/hooks/post-update.sample "$1"/hooks/post-update
+
+