fix get_SHA_for_change in logerrit script
after
commit 02b5d09c0d
tdf#105204 fix shellcheck warnings in logerrit
the previous get_SHA_for_change returned a URL with a leading space,
which was previously implicitly stripped. Adding quotes prevents that
stripping, so we need to explicitly strip here
Change-Id: I5b303f6ca5b1dc7d2a369afc2c52830b1b9586eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89816
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
788ffc0360
commit
6ad2ec4e98
1 changed files with 1 additions and 1 deletions
2
logerrit
2
logerrit
|
@ -5,7 +5,7 @@ GERRITHOST=logerrit
|
|||
GERRITURL="ssh://$GERRITHOST/core"
|
||||
|
||||
get_SHA_for_change() {
|
||||
SHA=$(ssh "${GERRITHOST?}" gerrit query --all-approvals change:"$1"|grep ref|tail -1|cut -d: -f2)
|
||||
SHA=$(ssh "${GERRITHOST?}" gerrit query --all-approvals change:"$1" | grep ref | tail -1 | cut -d: -f2 | sed 's/^ *//')
|
||||
}
|
||||
|
||||
submit() {
|
||||
|
|
Loading…
Reference in a new issue