Commits

Satish Balay  committed 1501dda

nightlybuilds: use '-f' with 'git clean'

  • Participants
  • Parent commits 1547ecb

Comments (0)

Files changed (2)

File bin/maint/builddist

 fi
 
 # Clean and Update the git repository
-cd $PETSC_DIR; git reset --hard; git clean; git pull -q
+cd $PETSC_DIR; git reset --hard; git clean -f; git pull -q
 
 # check petscversion.h and set the version string
 version_release=`grep '^#define PETSC_VERSION_RELEASE ' include/petscversion.h |tr -s ' ' | cut -d ' ' -f 3`

File bin/maint/buildtest

 # This also requires 'clean' extension enabled on all nightly build machines.
 
 echo "Cleaning throughly and updating git clone at $nPETSC_DIR" >>& build.log
-(git reset --hard; git clean -q -e build.log;git pull -q) >>& build.log
+(git reset --hard; git clean -q -f -e build.log;git pull -q) >>& build.log
 
 # if externalpackage tarball also packs a git repo - one has to explicitly remove it
 rm -rf ./externalpackages