Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ref_test.go « gittest « git « internal - gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: afbf5c6b14b726545357a396145fbc2569226747 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package gittest

import (
	"testing"

	"github.com/stretchr/testify/require"
	"gitlab.com/gitlab-org/gitaly/v15/internal/git"
)

func TestResolveRevision(t *testing.T) {
	cfg, _, repoPath := setup(t)

	commitID := WriteCommit(t, cfg, repoPath, WithBranch(git.DefaultBranch))

	require.Equal(t, commitID, ResolveRevision(t, cfg, repoPath, git.DefaultBranch))
}