Skip to content

Commit 1862ce0

Browse files
committed
BuildTools: Update repo directory
1 parent d9605a2 commit 1862ce0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/CustomBuildTool/Build.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public static void SetupBuildEnvironment(bool ShowBuildInfo)
150150

151151
try
152152
{
153-
using (var repo = new LibGit2Sharp.Repository(Environment.CurrentDirectory))
153+
using (var repo = new LibGit2Sharp.Repository(Environment.CurrentDirectory + "\\.git"))
154154
{
155155
BuildBranch = repo.Head.FriendlyName;
156156
BuildCommit = repo.Head.Commits.First().Sha;
@@ -166,8 +166,10 @@ public static void SetupBuildEnvironment(bool ShowBuildInfo)
166166
BuildLongVersion = "3.0." + BuildCount + "." + BuildRevision;
167167
}
168168
}
169-
catch (Exception)
169+
catch (Exception ex)
170170
{
171+
Program.PrintColorMessage("[Build] " + ex, ConsoleColor.Yellow);
172+
171173
BuildBranch = string.Empty;
172174
BuildCommit = string.Empty;
173175
BuildCount = string.Empty;
Binary file not shown.

0 commit comments

Comments
 (0)