Skip to content

Commit 7a2cd46

Browse files
committed
Notice errors from invocation of git rev-parse HEAD
1 parent 099cd1d commit 7a2cd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/MergeFrom-Template.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if ($LASTEXITCODE -ne 0) {
4343

4444
$LibTemplateUrl = 'https://github.com/aarnott/Library.Template'
4545
Spawn-Tool 'git' ('fetch', $LibTemplateUrl, $remoteBranch)
46-
$SourceCommit = git rev-parse FETCH_HEAD
46+
$SourceCommit = Spawn-Tool 'git' ('rev-parse', 'FETCH_HEAD')
4747
$BaseBranch = Spawn-Tool 'git' ('branch', '--show-current')
4848
$SourceCommitUrl = "$LibTemplateUrl/commit/$SourceCommit"
4949

0 commit comments

Comments
 (0)