Skip to content

Commit

Permalink
Add exact-match arg to git describe call (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMartinez authored Oct 19, 2023
1 parent 552160a commit 5884bae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Spago/Git.purs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ tagCheckedOut :: forall a. Maybe FilePath -> Spago (GitEnv a) (Either Docc Strin
tagCheckedOut cwd = do
let opts = Cmd.defaultExecOptions { pipeStdout = false, pipeStderr = false, cwd = cwd }
{ git } <- ask
Cmd.exec git.cmd [ "describe", "--tags" ] opts >>= case _ of
Cmd.exec git.cmd [ "describe", "--tags", "--exact-match" ] opts >>= case _ of
Left err -> pure $ Left $ toDoc "The git ref currently checked out is not a tag."
Right res' -> pure $ Right res'.stdout

Expand Down

0 comments on commit 5884bae

Please sign in to comment.