diff --git a/lib/oto/commands/git/git.dart b/lib/oto/commands/git/git.dart index 53f2dc5..f818313 100644 --- a/lib/oto/commands/git/git.dart +++ b/lib/oto/commands/git/git.dart @@ -46,6 +46,7 @@ class GitRev extends Command { var shell = StringBuffer(getCDPath(workspace)); var target = data.branch ?? 'HEAD'; + target = replaceTag(target); shell.write(' && git rev-parse $target'); var process = await ProcessExecutor.start(shell, printStderr: false); var exitCode = await process.process.exitCode;