Skip to content

Commit

Permalink
docs: update main branch missing message
Browse files Browse the repository at this point in the history
  • Loading branch information
arxanas committed Nov 11, 2022
1 parent c611b7f commit f325dff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-branchless-lib/src/core/repo_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ These branches exist: {:?}
Either create it, or update the main branch setting by running:
git branchless init --main-branch <branch>
",
Note that remote main branches are no longer supported as of v0.6.0. See
https://github.com/arxanas/git-branchless/discussions/595 for more details.",
get_main_branch_name(self)?,
self.get_path(),
self.get_all_local_branches()?
Expand Down
2 changes: 2 additions & 0 deletions git-branchless/tests/command/test_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ fn test_main_branch_not_found_error_message() -> eyre::Result<()> {
git branchless init --main-branch <branch>
Note that remote main branches are no longer supported as of v0.6.0. See
https://github.com/arxanas/git-branchless/discussions/595 for more details.
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Expand Down

0 comments on commit f325dff

Please sign in to comment.