File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ public static void SetupBuildEnvironment(bool ShowBuildInfo)
150
150
151
151
try
152
152
{
153
- using ( var repo = new LibGit2Sharp . Repository ( Environment . CurrentDirectory ) )
153
+ using ( var repo = new LibGit2Sharp . Repository ( Environment . CurrentDirectory + " \\ .git" ) )
154
154
{
155
155
BuildBranch = repo . Head . FriendlyName ;
156
156
BuildCommit = repo . Head . Commits . First ( ) . Sha ;
@@ -166,8 +166,10 @@ public static void SetupBuildEnvironment(bool ShowBuildInfo)
166
166
BuildLongVersion = "3.0." + BuildCount + "." + BuildRevision ;
167
167
}
168
168
}
169
- catch ( Exception )
169
+ catch ( Exception ex )
170
170
{
171
+ Program . PrintColorMessage ( "[Build] " + ex , ConsoleColor . Yellow ) ;
172
+
171
173
BuildBranch = string . Empty ;
172
174
BuildCommit = string . Empty ;
173
175
BuildCount = string . Empty ;
You can’t perform that action at this time.
0 commit comments