Skip to content

Commit

Permalink
keep .git folder
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-guo committed Dec 20, 2024
1 parent 280ca14 commit f09cafc
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,10 @@ getTestKitGen()
tkg_sha=(`git rev-parse origin/$TKG_BRANCH`)
fi

echo "git checkout -q -f $tkg_sha"
echo "git checkout -q -f $tkg_sfha"
git checkout -q -f $tkg_sha

checkTestRepoSHAs
}

getCustomJtreg()
Expand Down Expand Up @@ -660,7 +661,9 @@ getFunctionalTestMaterial()
mv openj9/test/functional functional
fi

rm -rf openj9
cd openj9
find . -mindepth 1 ! -name ".git" ! -path "./.git/*" -exec rm -rf {} +
cd $TESTDIR
}

getVendorTestMaterial() {
Expand Down Expand Up @@ -745,7 +748,10 @@ getVendorTestMaterial() {
fi

# clean up
rm -rf $dest
cd $dest
find . -mindepth 1 ! -name ".git" ! -path "./.git/*" -exec rm -rf {} +
cd $TESTDIR

done
}

Expand Down Expand Up @@ -807,11 +813,8 @@ testJavaVersion()

checkRepoSHA()
{
sha_file="$TESTDIR/TKG/SHAs.txt"
echo "$TESTDIR/TKG/scripts/getSHAs.sh --repo_dir $1 --output_file $sha_file"
$TESTDIR/TKG/scripts/getSHAs.sh --test_root_dir $1 --shas_file $sha_file

testenv_file="$TESTDIR/testenv/testenv.properties"

echo "$TESTDIR/TKG/scripts/getTestenvProperties.sh --repo_dir $1 --output_file $testenv_file --repo_name $2"
$TESTDIR/TKG/scripts/getTestenvProperties.sh --repo_dir $1 --output_file $testenv_file --repo_name $2
}
Expand Down

0 comments on commit f09cafc

Please sign in to comment.