test: generate random repo names with fs-safe characters
This commit is contained in:
parent
98288ae188
commit
e278cadbed
@ -198,7 +198,7 @@ make_bare() {
|
||||
#
|
||||
# remove_and_create_local_repo "$reponame"
|
||||
remove_and_create_local_repo() {
|
||||
local reponame="$(base64 < /dev/urandom | head -c 8 | sed -e 's/\///')-$1"
|
||||
local reponame="$(base64 < /dev/urandom | head -c 8 | $SHASUM | cut -f 1 -d ' ')-$1"
|
||||
|
||||
git init "$reponame"
|
||||
cd "$reponame"
|
||||
@ -209,7 +209,7 @@ remove_and_create_local_repo() {
|
||||
#
|
||||
# remove_and_create_remote_repo "$reponame"
|
||||
remove_and_create_remote_repo() {
|
||||
local reponame="$(base64 < /dev/urandom | head -c 8 | sed -e 's/\///')-$1"
|
||||
local reponame="$(base64 < /dev/urandom | head -c 8 | $SHASUM | cut -f 1 -d ' ')-$1"
|
||||
|
||||
setup_remote_repo "$reponame"
|
||||
clone_repo "$reponame" "$reponame"
|
||||
|
Loading…
Reference in New Issue
Block a user