VISUALSVN 후 커밋 후크에서 repo 이름을 얻으려면 어떻게해야합니까?VISUALSVN 사후 커밋 후크 - repo 이름 얻기
@echo off
set PWSH=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe
%PWSH% -command $input ^| C:\temp\post-commit.ps1 %1 %2 'demo''
if errorlevel 1 exit %errorlevel%
나는 문자열 '데모'를 REPO 이름으로을 대체하고 싶습니다. 다음 $ 같은
뭔가 %1
로
@echo off
$reponame = SOME CODE TO GET REPO NAME
set PWSH=%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe
%PWSH% -command $input ^| C:\temp\post-commit.ps1 %1 %2 '$reponame'
if errorlevel 1 exit %errorlevel%