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

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

import (
	"testing"

	"gitlab.com/gitlab-org/gitaly/internal/gitaly/config"
)

// CreateRemoteBranch creates a new remote branch
func CreateRemoteBranch(t testing.TB, cfg config.Cfg, repoPath, remoteName, branchName, ref string) {
	Exec(t, cfg, "-C", repoPath, "update-ref", "refs/remotes/"+remoteName+"/"+branchName, ref)
}