diff --git a/ue4-package.ps1 b/ue4-package.ps1 index b158d5b..c6b8ffb 100644 --- a/ue4-package.ps1 +++ b/ue4-package.ps1 @@ -205,7 +205,7 @@ try { if ($forcetag) { $forcearg = "-f" } - if (-not $test -and -not $dryrun) { + if (-not $test -and -not $dryrun -and $isGit) { if ($src -ne ".") { Push-Location $src } git tag $forcearg -a $versionNumber -m "Automated release tag" if ($LASTEXITCODE -ne 0) { Exit $LASTEXITCODE }