mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-16 04:34:27 +00:00
cli: print "workspace root" without loading repo
This commit is contained in:
parent
818a885658
commit
526953cd87
@ -270,8 +270,8 @@ fn cmd_workspace_root(
|
||||
command: &CommandHelper,
|
||||
_args: &WorkspaceRootArgs,
|
||||
) -> Result<(), CommandError> {
|
||||
let workspace_command = command.workspace_helper(ui)?;
|
||||
let root = workspace_command
|
||||
let root = command
|
||||
.workspace_loader()?
|
||||
.workspace_root()
|
||||
.to_str()
|
||||
.ok_or_else(|| user_error("The workspace root is not valid UTF-8"))?;
|
||||
|
Loading…
x
Reference in New Issue
Block a user