Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Dec 10, 2024
1 parent dbf2655 commit 1f83ace
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nimblepkg/nimblesat.nim
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ proc getPackageMinimalVersionsFromRepo*(repoDir: string, name: string, version:
let tags = getTagsList(repoDir, downloadMethod).getVersionList()
template checkoutCurrentVersion() =
if version.isSpecial:
let specialVersion = substr($version, 1)
var specialVersion = substr($version, 1)
if specialVersion == "head":
specialVersion = "HEAD^"
doCheckout(downloadMethod, repoDir, specialVersion)
else:
for (ver, tag) in tags.pairs:
Expand Down

0 comments on commit 1f83ace

Please sign in to comment.