Skip to content

Commit

Permalink
mr_test: Check out test branch under diverging name
Browse files Browse the repository at this point in the history
We expect lab to resolve the local branch to the correct upstream
branch now. Test this by checking out the branch under a different
local name.
  • Loading branch information
fmuellner committed Dec 10, 2020
1 parent 37348fb commit 434587b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/mr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func Test_mrCmd_MR_description_and_options(t *testing.T) {
}
})
t.Run("create MR from file", func(t *testing.T) {
git := exec.Command("git", "checkout", "mrtest")
git := exec.Command("git", "checkout", "-b", "local/mrtest", "origin/mrtest")
git.Dir = repo
b, err := git.CombinedOutput()
if err != nil {
Expand Down

0 comments on commit 434587b

Please sign in to comment.