Skip to content

Commit

Permalink
fix🐛 (Invoke-GitCommit): fatal: empty string is not a valid pathspec.
Browse files Browse the repository at this point in the history
  • Loading branch information
capdiem committed Dec 1, 2022
1 parent 4eb3ceb commit d179d71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PSGitUtils/PSGitUtils.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSGitUtils.psm1'

# Version number of this module.
ModuleVersion = '1.14.1'
ModuleVersion = '1.14.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions PSGitUtils/PSGitUtils.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,9 @@ function Invoke-GitCommit {
$params.Add("--no-verify")
}

$newMessage = Format-GitCommitMessage $message
[string]$newMessage = Format-GitCommitMessage $message

git commit -m $newMessage $params
git commit -m $newMessage.Trim() $params
}

<#
Expand Down

0 comments on commit d179d71

Please sign in to comment.