Skip to content

Commit

Permalink
chore(build): use .NET way to copy git hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberhck committed Jun 13, 2021
1 parent b034176 commit 1f5649a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Micro.Starter.Api/Micro.Starter.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
<Folder Include="Internal" />
</ItemGroup>

<Target Name="Install githooks" BeforeTargets="Build">
<Exec Command="cp ../hooks/* ../.git/hooks/" />
<Target Name="CopyCustomContent" AfterTargets="AfterBuild">
<ItemGroup>
<_CustomFiles Include="../extras/hooks/commit-msg" />
</ItemGroup>
<Copy SourceFiles="@(_CustomFiles)" DestinationFolder="./../.git/hooks" />
</Target>
</Project>
File renamed without changes.

0 comments on commit 1f5649a

Please sign in to comment.