Skip to content

Commit

Permalink
Fix git version via removing newlines and fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Miepee committed Jun 13, 2022
1 parent d315666 commit d012c62
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions UndertaleModLib/UndertaleModLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<Exec Command="echo &quot;&quot; &gt; &quot;$(ProjectDir)/gitversion.txt&quot;" IgnoreExitCode="true" />

<!--If on Windows check if git is in PATH-->
<Exec Condition="!$([MSBuild]::IsOsPlatform('Windows'))" Command="where /q git" IgnoreExitCode="true">
<Exec Condition="$([MSBuild]::IsOsPlatform('Windows'))" Command="where /q git" IgnoreExitCode="true">
<Output TaskParameter="ExitCode" PropertyName="ErrorCode"/>
</Exec>
<PropertyGroup>
Expand All @@ -46,8 +46,6 @@
<GitPath Condition="'$(ErrorCode)'=='1'">$(DevEnvDir)\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\cmd\git</GitPath>
</PropertyGroup>
<!-- Use GitPath and put the git commit name and branch name into gitversion.txt which is an embedded resource-->
<Exec Command="( &quot;$(GitPath)&quot; describe --always --dirty &amp;&amp;
&quot;$(GitPath)&quot; rev-parse --abbrev-ref HEAD ) &gt; &quot;$(ProjectDir)/gitversion.txt&quot;"
IgnoreExitCode="true"/>
<Exec Command="( &quot;$(GitPath)&quot; describe --always --dirty &amp;&amp; &quot;$(GitPath)&quot; rev-parse --abbrev-ref HEAD ) &gt; &quot;$(ProjectDir)/gitversion.txt&quot;" IgnoreExitCode="true"/>
</Target>
</Project>

0 comments on commit d012c62

Please sign in to comment.