]> git.ipfire.org Git - thirdparty/linux.git/blame - scripts/check-git
pidfs: remove config option
[thirdparty/linux.git] / scripts / check-git
CommitLineData
05e96e96
MY
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-only
3#
4# succeed if we are in a git repository
5
6srctree="$(dirname $0)/.."
7
8if ! git -C "${srctree}" rev-parse --verify HEAD >/dev/null 2>/dev/null; then
9 exit 1
10fi
11
12if ! test -z $(git -C "${srctree}" rev-parse --show-cdup 2>/dev/null); then
13 exit 1
14fi