summaryrefslogtreecommitdiff
path: root/git/.git_template/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'git/.git_template/hooks')
-rwxr-xr-xgit/.git_template/hooks/ctags3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/.git_template/hooks/ctags b/git/.git_template/hooks/ctags
index a9a2150..6fc53b6 100755
--- a/git/.git_template/hooks/ctags
+++ b/git/.git_template/hooks/ctags
@@ -1,8 +1,7 @@
#!/bin/sh
set -e
PATH="/usr/local/bin:$PATH"
-dir="`git rev-parse --git-dir`"
+dir="$(git rev-parse --git-dir)"
trap 'rm -f "$dir/$$.tags"' EXIT
git ls-files | ctags --tag-relative -L - -f"$dir/$$.tags" --languages=-javascript,sql
mv "$dir/$$.tags" "$dir/tags"
-