1 #!/bin/sh 1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0-only 2 # SPDX-License-Identifier: GPL-2.0-only 3 # 3 # 4 # succeed if we are in a git repository 4 # succeed if we are in a git repository 5 5 6 srctree="$(dirname $0)/.." 6 srctree="$(dirname $0)/.." 7 7 8 if ! git -C "${srctree}" rev-parse --verify HE 8 if ! git -C "${srctree}" rev-parse --verify HEAD >/dev/null 2>/dev/null; then 9 exit 1 9 exit 1 10 fi 10 fi 11 11 12 if ! test -z $(git -C "${srctree}" rev-parse - 12 if ! test -z $(git -C "${srctree}" rev-parse --show-cdup 2>/dev/null); then 13 exit 1 13 exit 1 14 fi 14 fi
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.