Skip to content

Commit

Permalink
Fix checkout to tag
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Oct 29, 2024
1 parent 81b0922 commit 1dbd0e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coordinator/src/main/scala/GitOps.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ object Git {
): Option[os.Path] = {
val branchOpt = revision.flatMap {
case Revision.Branch(name) => Some(s"--branch=$name")
case Revision.Tag(tag) => Some(s"--branch=$tag")
case _ => None
}
val depthOpt = depth.map(s"--depth=" + _)
Expand Down Expand Up @@ -78,8 +79,8 @@ object Git {
sha
case Revision.Tag(tag) =>
fetchTags(projectDir)
s"tags/$tag"

tag
val proc = os
.proc("git", "checkout", rev, "--quiet")
.call(
Expand Down

0 comments on commit 1dbd0e6

Please sign in to comment.