mirror of
https://github.com/grdl/git-get.git
synced 2026-02-10 06:09:22 +00:00
Add repo finder tests
This commit is contained in:
@@ -19,8 +19,13 @@ func (r *Repo) Path() string {
|
||||
|
||||
// RepoEmpty creates an empty git repo.
|
||||
func RepoEmpty(t *testing.T) *Repo {
|
||||
return RepoEmptyInDir(t, "")
|
||||
}
|
||||
|
||||
// RepoEmptyInDir creates an empty git repo inside a given parent dir.
|
||||
func RepoEmptyInDir(t *testing.T, parent string) *Repo {
|
||||
r := &Repo{
|
||||
path: tempDir(t, ""),
|
||||
path: TempDir(t, parent),
|
||||
t: t,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user