Sync SharedCode snapshot from dfae1cb
This commit is contained in:
1 parent
6eb8f4ad60
commit
96f3082f39
4 files changed
+375
-40
No files matched your search
@@ -0,0 +1,13 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$repositoryRoot = (& git -C $PSScriptRoot rev-parse --show-toplevel).Trim()
|
||||
if ($LASTEXITCODE -ne 0 -or [string]::IsNullOrWhiteSpace($repositoryRoot)) {
|
||||
throw 'Could not locate the shared Git repository.'
|
||||
}
|
||||
|
||||
& git -C $repositoryRoot config core.hooksPath .githooks
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw 'Could not configure the shared Git hooks path.'
|
||||
}
|
||||
|
||||
Write-Host "Installed shared post-commit synchronization hook in $repositoryRoot."
|
||||
Reference in new issue
Block a user