Skip to content

Commit 133a202

Browse files
committed
fixup! Use branchPrefix on moving commits to a new branch
1 parent c611cb8 commit 133a202

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/integration/tests/branch/move_commits_to_new_branch_keep_stacked.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ var MoveCommitsToNewBranchKeepStacked = NewIntegrationTest(NewIntegrationTestArg
99
Description: "Create a new branch from the commits that you accidentally made on the wrong branch; choosing stacked on current branch",
1010
ExtraCmdArgs: []string{},
1111
Skip: false,
12-
SetupConfig: func(config *config.AppConfig) {},
12+
SetupConfig: func(config *config.AppConfig) {
13+
config.GetUserConfig().Git.BranchPrefix = "myprefix/"
14+
},
1315
SetupRepo: func(shell *Shell) {
1416
shell.EmptyCommit("initial commit")
1517
shell.CloneIntoRemote("origin")
@@ -47,7 +49,7 @@ var MoveCommitsToNewBranchKeepStacked = NewIntegrationTest(NewIntegrationTestArg
4749

4850
t.Views().Branches().
4951
Lines(
50-
Contains("new-branch").DoesNotContain("↑").IsSelected(),
52+
Contains("myprefix/new-branch").DoesNotContain("↑").IsSelected(),
5153
Contains("feature ✓"),
5254
Contains("master ✓"),
5355
)

0 commit comments

Comments
 (0)