Skip to content

Commit

Permalink
Fixed another unit test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cmaglie committed Dec 12, 2024
1 parent 1eb6093 commit 02bcba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/libraries/gitutils/gitutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestSortedCommitTags(t *testing.T) {

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

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

0 comments on commit 02bcba1

Please sign in to comment.