diff options
author | rl1987 <rl1987@sdf.lonestar.org> | 2019-03-06 19:53:50 +0200 |
---|---|---|
committer | rl1987 <rl1987@sdf.lonestar.org> | 2019-03-10 18:28:06 +0200 |
commit | 5f253f6a4727b31242cd5998f1b3326cc9e7ed33 (patch) | |
tree | d49df1833f85edea5ae1981ccb85ea160e8cdc3d /scripts | |
parent | 888bb9508b7a89550d3b2d33236073fc14868a98 (diff) | |
download | tor-5f253f6a4727b31242cd5998f1b3326cc9e7ed33.tar.gz tor-5f253f6a4727b31242cd5998f1b3326cc9e7ed33.zip |
Iterate over contents of scripts/git with check_for_script_update function
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/git/post-merge.git-hook | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/git/post-merge.git-hook b/scripts/git/post-merge.git-hook index 300684a9b6..ed0e16279c 100755 --- a/scripts/git/post-merge.git-hook +++ b/scripts/git/post-merge.git-hook @@ -12,7 +12,7 @@ git_toplevel=$(git rev-parse --show-toplevel) check_for_diffs() { installed="$git_toplevel/.git/hooks/$1" - latest="$git_toplevel/scripts/maint/$1.git-hook" + latest="$git_toplevel/scripts/git/$1.git-hook" if [ -e "$installed" ] then @@ -26,7 +26,7 @@ check_for_diffs() { } check_for_script_update() { - fullpath="$git_toplevel/scripts/maint/$1" + fullpath="$1" if ! git diff ORIG_HEAD HEAD --exit-code -- "$fullpath" >/dev/null then @@ -39,6 +39,7 @@ check_for_diffs "pre-push" check_for_diffs "pre-commit" check_for_diffs "post-merge" -check_for_script_update "git-merge-forward.sh" -check_for_script_update "git-pull-all.sh" -check_for_script_update "git-push-all.sh" +for file in "$git_toplevel"/scripts/git/* ; do + check_for_script_update "$file" +done + |