ebpf-for-windows/scripts/copy_pre_commit.ps1

15 строки
336 B
PowerShell

# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: MIT
function copy-precommit
{
param([string]$file_path)
$command = "git rev-parse --git-path hooks"
$destination = Invoke-Expression $command
Write-Host "Copy $file_path to $destination."
Copy-Item $file_path $destination
}
copy-precommit $args[0]