Skip to content

Commit 29a98ab

Browse files
committed
add templatized variable for repository path substitution
1 parent 22cf331 commit 29a98ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

post-commit_template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
# PATH to the repository of interest
5-
export PATH=$PATH:~/Desktop/Code/MyCodeRepository/.git/hooks
5+
export PATH=$PATH:{{MY_REPO_PATH}}.git/hooks
66

77
toplevel_path=`git rev-parse --show-toplevel`
88
toplevel_dir=`basename "$toplevel_path"`
@@ -25,4 +25,4 @@ fi
2525
echo $tweet
2626
# Write a full path to where you put the post_commit_hook.py so it is executed
2727
# the $tweet variable is the command line argument that will be passed to the python script
28-
python ~/Desktop/Code/MyCodeRepository/.git/hooks/post_commit_hook_autogen.py $tweet
28+
python {{MY_REPO_PATH}}.git/hooks/post_commit_hook_autogen.py $tweet

0 commit comments

Comments
 (0)