From 0cfdcdf1b6a61f3e39260c21b438a0dcbbb88840 Mon Sep 17 00:00:00 2001 From: Martin Bonnin Date: Mon, 4 Nov 2024 17:18:59 +0100 Subject: [PATCH] fix gh repo create --- .../gradleup/librarian/cli/command/CreateGitHubRepository.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/librarian-cli/src/main/kotlin/com/gradleup/librarian/cli/command/CreateGitHubRepository.kt b/librarian-cli/src/main/kotlin/com/gradleup/librarian/cli/command/CreateGitHubRepository.kt index eeaf57b..c014b95 100644 --- a/librarian-cli/src/main/kotlin/com/gradleup/librarian/cli/command/CreateGitHubRepository.kt +++ b/librarian-cli/src/main/kotlin/com/gradleup/librarian/cli/command/CreateGitHubRepository.kt @@ -39,8 +39,7 @@ internal fun Path.createGitHubRepository(repository: GitHubRepository, defaultDe return UploadResult(false, false) } - runCommand("gh", "repo", "create", "--public", "-s", ".") - runCommand("git", "push", "origin", ".") + runCommand("gh", "repo", "create", "--public", "-s", ".", "--push", "${repository.owner}/${repository.name}",) val gitHubDescription = KInquirer.promptInput("GitHub description", defaultDescription) val gitHubTopics = KInquirer.promptInput("GitHub topics (use comma separated list)", "kotlin").split(",").map { it.trim() }