Skip to content

Commit 087c9c5

Browse files
committed
fixup! Refactor unwrapping of temp repository on unix
1 parent 0bfc288 commit 087c9c5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

LibGit2Sharp.Tests/TestHelpers/Constants.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public static string BuildPath()
5050
{
5151
// We're running on Mono/*nix. Let's unwrap the path
5252
tempPath = UnwrapUnixTempPath();
53-
Trace.TraceInformation("Running on Unix, tempPath: '{0}'", tempPath);
5453
}
5554
else
5655
{
@@ -77,8 +76,7 @@ public static string BuildPath()
7776

7877
private static string UnwrapUnixTempPath()
7978
{
80-
var assembly = Assembly.Load("Mono.Posix");
81-
var type = assembly.GetType("Mono.Unix.UnixPath");
79+
var type = Type.GetType("Mono.Unix.UnixPath, Mono.Posix, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756");
8280

8381
return (string)type.InvokeMember("GetCompleteRealPath",
8482
BindingFlags.Static | BindingFlags.FlattenHierarchy |

0 commit comments

Comments
 (0)