Skip to content

Commit 6eea004

Browse files
Merge pull request #7546 from Shopify/jules-refactor-git-tag-duplication-12497117072717296991
[Refactor] Remove duplication in git latest tag retrieval
2 parents 686e3cf + ce61230 commit 6eea004

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • packages/cli-kit/src/public/node

packages/cli-kit/src/public/node/git.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ export async function downloadGitRepository(cloneOptions: GitCloneOptions): Prom
233233
}
234234

235235
async function getLatestTagFromDirectory(directory: string, repoUrl: string): Promise<string> {
236-
const stdout = await gitCommand(['describe', '--tags', '--abbrev=0'], directory)
237-
const tag = stdout.trim()
236+
const tag = await getLatestTag(directory)
238237

239238
if (!tag) {
240239
throw new AbortError(`Couldn't obtain the most recent tag of the repository ${repoUrl}`)

0 commit comments

Comments
 (0)