Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Hopefully fixed test error that didn't occur on development machine
  • Loading branch information
JasonGoemaat committed Nov 21, 2015
commit 514eb8ee0a19566a0fd2de95d0fc4a93b903b10e
5 changes: 4 additions & 1 deletion LibGit2Sharp.Tests/SubmoduleFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@ public void CanInitSubmodule()
[Fact]
public void CanAddSubmodule()
{
string configPath = CreateConfigurationWithDummyUser(Constants.Identity);
var options = new RepositoryOptions { GlobalConfigurationLocation = configPath };

//var path = SandboxSubmoduleTestRepo();
var path = SandboxStandardTestRepo();
var pathSubRepoOrigin = SandboxStandardTestRepo();
Expand All @@ -218,7 +221,7 @@ public void CanAddSubmodule()
string expectedSubmoduleUrl = pathSubRepoOrigin.Replace('\\', '/');
ObjectId expectedCommitId = (ObjectId)"32eab9cb1f450b5fe7ab663462b77d7f4b703344";

using (var repo = new Repository(path))
using (var repo = new Repository(path, options))
{
// check on adding config entry
var configEntryBeforeAdd = repo.Config.Get<string>(string.Format("submodule.{0}.url", submoduleSubPath));
Expand Down