Skip to content

Commit 5c77180

Browse files
committed
[install] in gitTag.sh, check that git submodules have been updated
1 parent 3d880b5 commit 5c77180

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

epochX/cudacpp/gitTag.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ else
4949
shift
5050
fi
5151

52+
# Check that all git submodules have been updated
53+
if ! git submodule status | grep '^ ' > /dev/null; then
54+
echo "ERROR! There are git submodules that need to be updated"
55+
git submodule status
56+
exit 1
57+
fi
58+
5259
# Check that all changes are committed to git (except at most for this script only in the '-l' mode)
5360
if [ "$(git status --porcelain | grep -v ^??)" != "" ]; then
5461
if [ "$tagsuffix" != "" ] || [ "$(git status --porcelain | grep -v ^??)" != " M ${scr}" ]; then

0 commit comments

Comments
 (0)