revert suppress code

This commit is contained in:
Trevor Batley 2023-05-25 18:10:03 +10:00
parent 59b371fdd3
commit c308b967fd

View File

@ -134,7 +134,7 @@ fi
# Make sure credentials taken from store
# The first time you pull or push it will ask for credentials and then save them in a file.
git config --global credential.helper store "$suppress"
git config --global credential.helper store
#
# Clone the CVS repository
@ -227,7 +227,7 @@ if [ "$RESPONSE" == "200" ]; then
# And Clone it
if [ $DEBUG ] ; then echo "git clone $GITEAHOST/$ORGGITEA/$1.git" ; fi
cd $GITFiles
git clone "$GITEAHOST/$ORGGITEA/$1.git" "$suppress"
git clone "$GITEAHOST/$ORGGITEA/$1.git"
#GIT_SSL_NO_VERIFY=true git clone "$GITEAHOST/$ORGGITEA/$1.git"
NOREPO=0
else
@ -337,7 +337,7 @@ fi
# Pull in the auto created or updated files
cd $GITFiles
#GIT_SSL_NO_VERIFY=true git clone "$GITEAHOST/$ORGGITEA/$1.git"
git clone "$GITEAHOST/$ORGGITEA/$1.git" "$suppress"
git clone "$GITEAHOST/$ORGGITEA/$1.git"
if [ ! -d $GITFiles/$1 ] ; then
echo "ERROR*******Unable to access the new repo directory for $HTTP_URL $GITFiles/$1"
@ -349,7 +349,7 @@ cd $CVSFiles/$1/$BASEORCONTRIB
# Fully populate the directory (gets the tar file - which is not strictly in CVS) and creates the directory source tree
# applying the patches to the base in the tar file.
# Might need to replace this by the code from the makefile if we decide to move "make prep" to git moe likely we'll implement a new one "make gitprep".
make prep "$suppress"
make prep
# Extract the directory name for the file tree (it will include the name of the module plus some version information)
# Same trick that we use in the makefile.common - taking the name and verison from the .spec file.
@ -516,9 +516,9 @@ else
# Third party package
# copy over the archive file and make sure the extension is tracked by git-lfs
if [ $DEBUG ] ; then echo "************Found 3rd party package $NAME" ; fi
git lfs install "$suppress"
git lfs track "*.$EXT" "$suppress"
git add .gitattributes "$suppress"
git lfs install
git lfs track "*.$EXT"
git add .gitattributes
#git config lfs.http://gitea.bjsystems.co.uk/SMEContribs/bugzilla.git/info/lfs.locksverify true
if [[ -f $CVSFiles/$1/$BASEORCONTRIB/$ARCHIVEFILE ]] ; then
if [ $DEBUG ] ; then echo "************Copying archivefile $CVSFiles/$1/$BASEORCONTRIB/$ARCHIVEFILE" ; fi
@ -535,7 +535,7 @@ if [[ $ARCHIVEFILE != "$TREEPATH.tar.gz" ]] ; then
fi
# Take out any bogus dates:
/usr/bin/BogusDateBot.sh $(basename $SPECFILE) "$suppress"
/usr/bin/BogusDateBot.sh $(basename $SPECFILE)
# If it is an SME package, take out the patches and then update the release.
if [[ "$NAME" =~ ^(smeserver-|e-smith-).* ]]; then
@ -590,7 +590,7 @@ if [ ! -e $GITFiles/common ]; then
else
# Just refresh it
cd $GITFiles/common
git pull "$suppress"
git pull
fi
# Now make sure that the make-archive is executible
@ -732,24 +732,24 @@ if [ $DEBUG ] ; then echo $RESPONSE ; fi
cd $GITFiles/$1
# stage and commit all the files created locally
git add -A "$suppress"
git add -A
echo "$1 git status" >>gitstatus.log
git status >>gitstatus.log
git status "$suppress"
git status
COMMENT="initial commit of file from CVS for $1 on `date`"
git commit -m "$COMMENT" $QUIET
# push the converted git repository to the remote
git remote remove origin "$suppress"
git remote add origin "$GITEAHOST/$ORGGITEA/$1.git" "$suppress"
git remote remove origin
git remote add origin "$GITEAHOST/$ORGGITEA/$1.git"
#GIT_SSL_NO_VERIFY=true git push --force -u $QUIET origin master
git push --force -u $QUIET origin master "$suppress"
git push --force -u $QUIET origin master
# Now create the version and release tag for these files
RELEASE=`rpm --queryformat '%{release}\n' --specfile $NAME.spec | head -n 1`
TAG=$VERSION-$RELEASE
git tag -a $TAG -m "$COMMENT" "$suppress"
git push origin $TAG "$suppress"
git tag -a $TAG -m "$COMMENT"
git push origin $TAG
echo "Created $1 Repo: $HTTP_URL - Comment:$COMMENT tag:$TAG"
exit 0