Skip to content

Commit 1678f1f

Browse files
Build-PSModule: Fix error when there are multiple got committees. (#9)
* Build-PSModule: Fix error when there are multiple git committers. * Update build.ps1 * Only get committers from the module folder
1 parent 4cdd979 commit 1678f1f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
$BuildPSModule = @{
22
Name = 'PSModuleUtils'
3-
Version = '1.6.0'
3+
Version = '1.6.1'
44
Description = 'A module with helper functions to build and publish PowerShell modules to the PSGallery.'
55
Tags = ('PSEdition_Desktop', 'PSEdition_Core', 'Windows')
66
}

src/public/Build-PSModule.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<#
1+
<#
22
.SYNOPSIS
33
Builds a PowerShell module formatted like the ones located at github.com/thisjustin816.
44
@@ -138,7 +138,7 @@ function Build-PSModule {
138138
$moduleVersion, $modulePrerelease = $Version -split '-', 2
139139
$newModuleManifest = @{
140140
Path = $manifestPath
141-
Author = ( & git log --format='%aN' | Sort-Object -Unique )
141+
Author = (( & git log --format='%aN' -- . | Sort-Object -Unique ) -join ', ')
142142
CompanyName = $companyName
143143
Copyright = "(c) $( Get-Date -Format yyyy ) $companyName. All rights reserved."
144144
RootModule = "$Name.psm1"

0 commit comments

Comments
 (0)