Skip to content

Commit 02bcba1

Browse files
committed
Fixed another unit test
Branch creation now forces the use of at least one slash "/" for better branch self-description. This sound quite arbitrary from the go-git library, but that's how it is.
1 parent 1eb6093 commit 02bcba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/libraries/gitutils/gitutils_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func TestSortedCommitTags(t *testing.T) {
9191

9292
worktree, err := repository.Worktree()
9393
require.NoError(t, err)
94-
require.NoError(t, worktree.Checkout(&git.CheckoutOptions{Branch: "development-branch", Create: true}))
94+
require.NoError(t, worktree.Checkout(&git.CheckoutOptions{Branch: "dev/branch", Create: true}))
9595

9696
var branchTags []*plumbing.Reference
9797
branchTags = append(branchTags, makeTag(t, repository, "1.0.2-rc1", makeCommit(t, repository, repositoryPath), true))

0 commit comments

Comments
 (0)