mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-31 00:12:06 +00:00
cli: print "workspace root" without loading repo
This commit is contained in:
parent
818a885658
commit
526953cd87
1 changed files with 2 additions and 2 deletions
|
@ -270,8 +270,8 @@ fn cmd_workspace_root(
|
||||||
command: &CommandHelper,
|
command: &CommandHelper,
|
||||||
_args: &WorkspaceRootArgs,
|
_args: &WorkspaceRootArgs,
|
||||||
) -> Result<(), CommandError> {
|
) -> Result<(), CommandError> {
|
||||||
let workspace_command = command.workspace_helper(ui)?;
|
let root = command
|
||||||
let root = workspace_command
|
.workspace_loader()?
|
||||||
.workspace_root()
|
.workspace_root()
|
||||||
.to_str()
|
.to_str()
|
||||||
.ok_or_else(|| user_error("The workspace root is not valid UTF-8"))?;
|
.ok_or_else(|| user_error("The workspace root is not valid UTF-8"))?;
|
||||||
|
|
Loading…
Reference in a new issue