diff options
author | David Goulet <dgoulet@torproject.org> | 2019-04-24 09:39:32 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-04-24 09:39:32 -0400 |
commit | 4587e67dfd29f62ced4c52c18d2c2b7e1538080b (patch) | |
tree | fd6a086c241f0da75828b3c156c099fa6eeac6bb /scripts/git/pre-commit.git-hook | |
parent | 15d42383833341c9e0c859ba3998ea70eccd74af (diff) | |
parent | 98e08b452f81316f108113d7ecff15a5e2855d63 (diff) | |
download | tor-4587e67dfd29f62ced4c52c18d2c2b7e1538080b.tar.gz tor-4587e67dfd29f62ced4c52c18d2c2b7e1538080b.zip |
Merge branch 'tor-github/pr/930'
Diffstat (limited to 'scripts/git/pre-commit.git-hook')
-rwxr-xr-x | scripts/git/pre-commit.git-hook | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/git/pre-commit.git-hook b/scripts/git/pre-commit.git-hook index 76d13adeb9..b285776c04 100755 --- a/scripts/git/pre-commit.git-hook +++ b/scripts/git/pre-commit.git-hook @@ -12,7 +12,7 @@ cd "$workdir" || exit 1 set -e -if [ ! -z "ls ./changes/*" ]; then +if [ -n "$(ls ./changes/)" ]; then python scripts/maint/lintChanges.py ./changes/* fi @@ -26,7 +26,7 @@ if [ -d src/lib ]; then src/test/*.[ch] \ src/test/*/*.[ch] \ src/tools/*.[ch] -elif [ -d src/common]; then +elif [ -d src/common ]; then # This was the layout before 0.3.5 perl scripts/maint/checkSpace.pl -C \ src/common/*/*.[ch] \ |