Skip to content

Commit

Permalink
fix(update): Fix scoop update changelog output
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Oct 18, 2019
1 parent 8ee45a5 commit e997017
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libexec/scoop-update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function update_scoop() {
} else {
Push-Location $currentdir

$currentRepo = git_config remote.origin.url
$previousCommit = Invoke-Expression 'git rev-parse HEAD'
$currentRepo = Invoke-Expression "git config remote.origin.url"
$currentBranch = Invoke-Expression "git branch"

Expand Down Expand Up @@ -119,7 +119,7 @@ function update_scoop() {

$res = $lastexitcode
if ($show_update_log) {
git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD
Invoke-Expression "git --no-pager log --no-decorate --format='tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset' '$previousCommit..HEAD'"
}

Pop-Location
Expand Down Expand Up @@ -148,9 +148,10 @@ function update_scoop() {
}

Push-Location $loc
$previousCommit = (Invoke-Expression 'git rev-parse HEAD')
git_pull -q
if ($show_update_log) {
git_log --no-decorate --date=local --since="`"$last_update`"" --format="`"tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset`"" HEAD
Invoke-Expression "git --no-pager log --no-decorate --format='tformat: * %C(yellow)%h%Creset %<|(72,trunc)%s %C(cyan)%cr%Creset' '$previousCommit..HEAD'"
}
Pop-Location
}
Expand Down

0 comments on commit e997017

Please sign in to comment.