Skip to content

Commit f325dff

Browse files
committed
docs: update main branch missing message
1 parent c611b7f commit f325dff

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

git-branchless-lib/src/core/repo_ext.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ These branches exist: {:?}
5555
Either create it, or update the main branch setting by running:
5656
5757
git branchless init --main-branch <branch>
58-
",
58+
59+
Note that remote main branches are no longer supported as of v0.6.0. See
60+
https://github.com/arxanas/git-branchless/discussions/595 for more details.",
5961
get_main_branch_name(self)?,
6062
self.get_path(),
6163
self.get_all_local_branches()?

git-branchless/tests/command/test_init.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,8 @@ fn test_main_branch_not_found_error_message() -> eyre::Result<()> {
338338
339339
git branchless init --main-branch <branch>
340340
341+
Note that remote main branches are no longer supported as of v0.6.0. See
342+
https://github.com/arxanas/git-branchless/discussions/595 for more details.
341343
342344
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
343345
Run with RUST_BACKTRACE=full to include source snippets.

0 commit comments

Comments
 (0)