Skip to content

Commit

Permalink
tweaking build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftbot committed Apr 11, 2013
1 parent 19ac019 commit b3edbec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion MahApps.Metro/MahApps.Metro.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,11 @@
</Target>
-->
<Target Name="BeforeBuild">
<!-- if not on build server, call git.exe to get HEAD commit -->
<!-- if provided, ensure it's a trimmed hash -->
<PropertyGroup>
<GitCommitHash Condition=" '$(GitCommitHash)' != '' ">$(GitCommitHash.Substring(0, 7))</GitCommitHash>
</PropertyGroup>
<!-- if not provided, call git.exe to get HEAD commit -->
<GitVersion LocalPath="$(SolutionDir)" Condition=" '$(GitCommitHash)' == '' ">
<Output TaskParameter="CommitHash" PropertyName="GitCommitHash" />
</GitVersion>
Expand Down

0 comments on commit b3edbec

Please sign in to comment.