Skip to content

Commit

Permalink
DAOS-6338 DAOS:Change DAOS license text
Browse files Browse the repository at this point in the history
    undo changes to utils/githooks/pre-commit which will be landed by another pr.

    Skip-build: true
    Skip-test: true

Change-Id: I4ba7bf2bd767f173d9be59aacead4dca2dbbf5bc
Signed-off-by: Hua Kuang <hua.kuang@intel.com>
  • Loading branch information
GitHuaKuang committed Jan 21, 2021
1 parent 44750fc commit dd3a7bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/githooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ if [ -n "${NO_PRE_COMMIT:=""}" ]; then
exit 0
fi

regex='(^\s*[\*/]*.*)((Copyright\s*)([0-9]{4})(-([0-9]{4}))?)(\s*(Intel.*$))'
regex='(^\s*[\*/].*)((Copyright\s*)([0-9]{4})(-([0-9]{4}))?)(\s*(Intel.*$))'
year=$(date +%Y)
errors=0

files=$(git diff --diff-filter=AM --name-only --cached -- \
'*.c' '*.h' '*.go' 'Makefile' '*.py')
'*.c' '*.h' '*.go' 'Makefile')
for file in $files; do
if [[ "$file" == *vendor* ]] || [[ "$file" == *pb.go ]] || \
[[ "$file" == *_string.go ]] || [[ "$file" == *pb-c* ]]; then
Expand Down

0 comments on commit dd3a7bf

Please sign in to comment.