~aleteoryx/muditaos

ref: d5de12f7cea071555de4058ebf62b160a86a36af muditaos/config/pre-commit.hook -rwxr-xr-x 370 bytes
d5de12f7 — Radosław Wicik [EGD-3852] clean include in service (#928) 5 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# Copyright (c) 2017-2020, Mudita Sp. z.o.o. All rights reserved. 
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

#run pre-commit hooks

set -e 
L_GIT_DIR=$(git rev-parse --show-toplevel)
pushd $L_GIT_DIR
echo "=== check copyright ==="
./config/license_header_check.sh --hook
echo "=== check style ==="
./config/style_check_hook.sh
popd