We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5604e18 commit 4dbb5adCopy full SHA for 4dbb5ad
src/NerdBank.GitVersioning.Tests/RepoFinderTests.cs
@@ -65,5 +65,11 @@ public void SubDirectoryWithValidGitFile()
65
File.WriteAllText(Path.Combine(submodule.FullName, ".git"), $"gitdir: ../{gitDir.Name}");
66
Assert.Equal(FindGitDir(submodule.FullName), gitDir.FullName);
67
}
68
+
69
+ [Fact]
70
+ public void NonRepoDirectory()
71
+ {
72
+ Assert.Equal(FindGitDir(Path.GetTempPath()), null);
73
+ }
74
75
0 commit comments