Skip to content

Commit

Permalink
cli: suggest "jj git init" if workspace looks like a plain git repo
Browse files Browse the repository at this point in the history
  • Loading branch information
yuja committed Feb 7, 2024
1 parent 1be8225 commit 3e72c43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/cli_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1882,7 +1882,7 @@ fn map_workspace_load_error(err: WorkspaceLoadError, workspace_path: Option<&str
message,
"It looks like this is a git repo. You can create a jj repo backed by it by \
running this:
jj init --git-repo=.",
jj git init --git-repo=.",
)
} else {
user_error(message)
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/test_global_opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn test_no_workspace_directory() {
insta::assert_snapshot!(stderr, @r###"
Error: There is no jj repo in "."
Hint: It looks like this is a git repo. You can create a jj repo backed by it by running this:
jj init --git-repo=.
jj git init --git-repo=.
"###);
}

Expand Down

0 comments on commit 3e72c43

Please sign in to comment.