mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Remove the error checking in buildcore.sh. In our autobuild
environment, the build does a new git clone each time, so it's no longer necessary. Keep the warning message
This commit is contained in:
parent
d58327a2f1
commit
e090a4e9a1
13
buildcore.sh
13
buildcore.sh
@ -255,20 +255,15 @@ if [ "$GIT" = "1" ]; then
|
||||
# To enable local sandbox build, GITPULL is disabled by default.
|
||||
#
|
||||
if [ "$GITPULL" = "1" ] || [ ${PWD} == *"autobuild"* ]; then
|
||||
# TODO: This is really not necessary since the autobuild scripts
|
||||
# are building the xcat code in a new directory each time
|
||||
# Do some checking for modified files
|
||||
MODIFIED_FILES=`git ls-files --modified | tr '\n' ', '`
|
||||
if [ $MODIFIED_FILES ]; then
|
||||
echo "The following files have been modified in the local repository: $MODIFIED_FILES..."
|
||||
echo "Not a clean build, aborting..."
|
||||
exit 3
|
||||
echo "WARNING: The following files have been modified in the local repository: $MODIFIED_FILES..."
|
||||
fi
|
||||
# check if there's any modifications to git current repo
|
||||
# Do some checking for untracked files
|
||||
UNTRACKED_FILES=`git ls-files --others | tr '\n' ', '`
|
||||
if [ -n "$UNTRACKED_FILES" ]; then
|
||||
echo "The following files are not tracked in git: $UNTRACKED_FILES..."
|
||||
echo "Not a clean build, aborting..."
|
||||
exit 3
|
||||
echo "WARNING: The following files are not tracked in git: $UNTRACKED_FILES..."
|
||||
fi
|
||||
if [ -z "$GITUP" ]; then
|
||||
if [ ! -z "$COMMITID" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user