Skip to content

Commit

Permalink
Notice errors from invocation of git rev-parse HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Oct 9, 2024
1 parent 099cd1d commit 7a2cd46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/MergeFrom-Template.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if ($LASTEXITCODE -ne 0) {

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

Expand Down

0 comments on commit 7a2cd46

Please sign in to comment.