diff --git a/acceptance/testdata/repos/repo-clone.txtar b/acceptance/testdata/repos/repo-clone.txtar new file mode 100644 index 000000000..f0bad8e01 --- /dev/null +++ b/acceptance/testdata/repos/repo-clone.txtar @@ -0,0 +1,15 @@ +# Use gh as a credential helper +exec gh auth setup-git + +# Create a repository with a file so it has a default branch +exec gh repo create $ORG/$SCRIPT_NAME-$RANDOM_STRING --add-readme --private + +# Defer repo cleanup +defer gh repo delete --yes $ORG/$SCRIPT_NAME-$RANDOM_STRING + +# Clone the repo +exec gh repo clone $ORG/$SCRIPT_NAME-$RANDOM_STRING + +# Ensure the repo was cloned +exec ls $SCRIPT_NAME-$RANDOM_STRING +stdout README.md \ No newline at end of file