diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-20 09:14:37 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-03-20 09:14:37 +0100 |
commit | f16a70c0472ea4cda3ab53fd3b5d2fa5628fb2c7 (patch) | |
tree | d4cc4eacbe86b093d0425236afb7118b3f104345 /scripts/check-git | |
parent | 15ac1122fd6d4bf408a03e6f23c7ad4f60b22f9e (diff) | |
parent | e8d018dd0257f744ca50a729e3d042cf2ec9da65 (diff) |
Merge 6.3-rc3 into tty-next
We need the tty/serial fixes in here and it resolves a merge conflict
with:
drivers/tty/serial/8250/8250_em.c
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/check-git')
-rwxr-xr-x | scripts/check-git | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/check-git b/scripts/check-git new file mode 100755 index 000000000000..2ca6c5df10dd --- /dev/null +++ b/scripts/check-git @@ -0,0 +1,14 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-only +# +# succeed if we are in a git repository + +srctree="$(dirname $0)/.." + +if ! git -C "${srctree}" rev-parse --verify HEAD >/dev/null 2>/dev/null; then + exit 1 +fi + +if ! test -z $(git -C "${srctree}" rev-parse --show-cdup 2>/dev/null); then + exit 1 +fi |