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

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

import (
	"gitlab.com/gitlab-org/gitaly/internal/git/repository"
)

// RepoPathEqual compares if two repositories are in the same location
func RepoPathEqual(a, b repository.GitRepo) bool {
	return a.GetStorageName() == b.GetStorageName() &&
		a.GetRelativePath() == b.GetRelativePath()
}