mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-15 16:53:25 +00:00
cli: suggest "jj git init" if workspace looks like a plain git repo
This commit is contained in:
parent
1be8225046
commit
3e72c43970
2 changed files with 2 additions and 2 deletions
|
@ -1882,7 +1882,7 @@ fn map_workspace_load_error(err: WorkspaceLoadError, workspace_path: Option<&str
|
||||||
message,
|
message,
|
||||||
"It looks like this is a git repo. You can create a jj repo backed by it by \
|
"It looks like this is a git repo. You can create a jj repo backed by it by \
|
||||||
running this:
|
running this:
|
||||||
jj init --git-repo=.",
|
jj git init --git-repo=.",
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
user_error(message)
|
user_error(message)
|
||||||
|
|
|
@ -210,7 +210,7 @@ fn test_no_workspace_directory() {
|
||||||
insta::assert_snapshot!(stderr, @r###"
|
insta::assert_snapshot!(stderr, @r###"
|
||||||
Error: There is no jj repo in "."
|
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:
|
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=.
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue