Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/install-windows-auto-commit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ try {
Invoke-WebRequest -Uri $Url -OutFile $hookPath -UseBasicParsing
Write-Host "File saved as $hookPath" -ForegroundColor Yellow

git config --local alias.auto '!powershell -c ./.git/hooks/auto-commit'
git config --local alias.auto '!./.git/hooks/auto-commit'

$versionFile = Join-Path -Path ".git/hooks" -ChildPath "auto-commit.version.txt"
Set-Content -Path $versionFile -Value $tag
Expand Down
3 changes: 1 addition & 2 deletions scripts/update-windows-auto-commit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ Download-WithProgress -url $Url -output $hookPath

Set-Content -Path $versionFile -Value $tag

# git config --local alias.auto '!./.git/hooks/auto-commit'
git config --local alias.auto '!powershell -c ./.git/hooks/auto-commit'
git config --local alias.auto '!./.git/hooks/auto-commit'

Write-Host "successful upgrade to version $tag"
exit 0