Skip to content

Commit

Permalink
Adjustment for GetRepository test function
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Sep 21, 2024
1 parent 3949d95 commit 39273ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<Version>2.65.1-nightly-20240911-092507</Version>
</PackageVersion>
<PackageVersion Include="Noggog.GitRepository">
<Version>1.3</Version>
<Version>1.2</Version>
</PackageVersion>
<PackageVersion Include="Noggog.SourceGenerators">
<Version>2.65.1-nightly-20240911-092507</Version>
Expand Down
7 changes: 5 additions & 2 deletions Synthesis.Bethesda.UnitTests/RepoTestUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Mutagen.Bethesda.Synthesis.Versioning;
using Noggog;
using Noggog.IO;
using Noggog.Utility;

namespace Synthesis.Bethesda.UnitTests;

Expand Down Expand Up @@ -57,12 +56,16 @@ public TempFolder GetRepository(
}

var remoteRef = localRepo.Network.Remotes.Add("origin", remote);
var master = localRepo.Branches[DefaultBranch];
var master = localRepo.Branches.First();
localRepo.Branches.Update(
master,
b => b.Remote = remoteRef.Name,
b => b.UpstreamBranch = master.CanonicalName);
localRepo.Network.Push(master);
if (master.FriendlyName != DefaultBranch)
{
localRepo.Branches.Add("dev", localRepo.Head.Tip);
}

return folder;
}
Expand Down

0 comments on commit 39273ff

Please sign in to comment.