busbey commented on a change in pull request #1725:
URL: https://github.com/apache/hbase/pull/1725#discussion_r429427677
##########
File path: dev-support/create-release/release-util.sh
##########
@@ -389,6 +389,43 @@ function configure_maven {
EOF
}
+# clone of the repo, deleting anything that exists in the working directory
named after the project.
+# optionally with auth details for pushing.
+function git_clone_overwrite {
+ local asf_repo
+ if [ -z "${PROJECT}" ] || [ "${PROJECT}" != "${PROJECT#/}" ]; then
+ error "Project name must be defined and not start with a '/'.
PROJECT='${PROJECT}'"
+ fi
+ rm -rf "${PROJECT}"
Review comment:
I am a bit nervous here about malformed project names like "../.."
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]