summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2007-06-19 19:55:03 +0200
committerJens Axboe <jens.axboe@oracle.com>2007-06-19 19:55:03 +0200
commit3f95f0834ec99acaf6ce1bfbfccadd566494275a (patch)
tree62f24c6029750927b864dfc6766a5368d6cceeda
parent1da31518ee54d8b373b659047d01013371228c39 (diff)
downloadag-3f95f0834ec99acaf6ce1bfbfccadd566494275a.tar.gz
ag-3f95f0834ec99acaf6ce1bfbfccadd566494275a.tar.bz2
Add ag-common file with helpers
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--ag-common9
1 files changed, 9 insertions, 0 deletions
diff --git a/ag-common b/ag-common
new file mode 100644
index 0000000..cb9b98d
--- /dev/null
+++ b/ag-common
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+check_git_dir()
+{
+ if [ ! -d .git ]; then
+ echo Does not look like a git repo
+ exit 1
+ fi
+}