Skip to content

Commit 2a95c7c

Browse files
committed
ci: Check for submodules
1 parent 6d0e532 commit 2a95c7c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/lint/lint-submodule.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (c) 2020 The Bitcoin Core developers
4+
# Distributed under the MIT software license, see the accompanying
5+
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
6+
#
7+
# This script checks for git modules
8+
export LC_ALL=C
9+
EXIT_CODE=0
10+
11+
CMD=$(git submodule status --recursive)
12+
if test -n "$CMD";
13+
then
14+
echo These submodules were found, delete them:
15+
echo "$CMD"
16+
EXIT_CODE=1
17+
fi
18+
19+
exit $EXIT_CODE
20+

0 commit comments

Comments
 (0)