Skip to content

Commit 1ab457d

Browse files
committed
fix: Correct some mismatches from development
1 parent 286ec63 commit 1ab457d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Git/Project.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ public void Init(string repository)
2323
if (!Directory.Exists(GitPath))
2424
{
2525
Directory.CreateDirectory(GitPath);
26-
RunCommand($"clone --mirror {repository} .");
26+
RunCommand($"init");
27+
RunCommand($"remote add origin {repository}");
28+
RunCommand($"config remote.origin.fetch +refs/*:refs/*");
2729
}
2830
}
2931

Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ static async Task AsyncMain(IConfigurationRoot config)
128128
if (mergeBranchTree == autoMergeTree)
129129
{
130130
Console.WriteLine("No changes to push into merge branch");
131+
git.Checkout(gitHubConfig["mergeBranch"]);
131132
}
132133
else
133134
{

0 commit comments

Comments
 (0)