summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorAngus MacArthur <amacarthur@blackberry.com>2013-05-29 11:50:38 -0400
committerAngus MacArthur <amacarthur@blackberry.com>2013-05-29 11:50:38 -0400
commit0d51c4f377090583d9e5a8c5e71d8730d8b02991 (patch)
treeaab91d02a81b0c6536f472fa613430cff4e40ebe /support
parent5519420e3efefa651f0a74db9d9d6027dfc23ed8 (diff)
downloadgitlab-shell-0d51c4f377090583d9e5a8c5e71d8730d8b02991.tar.gz
added optional argument so to override default repo location
Diffstat (limited to 'support')
-rwxr-xr-xsupport/rewrite-hooks.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/support/rewrite-hooks.sh b/support/rewrite-hooks.sh
index 6de4dfc..1d0542e 100755
--- a/support/rewrite-hooks.sh
+++ b/support/rewrite-hooks.sh
@@ -1,7 +1,10 @@
#!/bin/bash
+# $1 is an optional argument specifying the location of the repositories directory.
+# Defaults to /home/git/repositories if not provided
+
home_dir="/home/git"
-src="$home_dir/repositories"
+src=${1:-"$home_dir/repositories"}
for dir in `ls "$src/"`
do