Skip to content

Commit 07862ee

Browse files
authored
[CI] Reorganize git hook script (#16412)
This commit moves copyright-check script from infra/command/ to infra/git-hooks/ and rename with .sh extension. And it removes deprecated format command and git commit hook script. ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
1 parent 114b12a commit 07862ee

File tree

5 files changed

+2
-306
lines changed

5 files changed

+2
-306
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ repos:
6363
hooks:
6464
- name: 'Check copyright headers'
6565
id: copyright-check
66-
entry: 'nnas copyright-check' # Use trick to use nnas command
66+
entry: infra/git-hooks/copyright-check.sh
6767
language: script
6868
pass_filenames: true
6969
types: [file]

infra/command/format

Lines changed: 0 additions & 234 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
CORRECT_COPYRIGHT="Copyright \(c\) [0-9\-]+ Samsung Electronics Co\., Ltd\. All Rights Reserved"
44

infra/git-hooks/pre-commit.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

infra/git-hooks/pre-push.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)