eeditiones/tuttle

Git-sha should have length 7

Closed this issue · 1 comments

let $sha := '<hash><value>'|| substring($git-sha, 1, 6) ||'</value></hash>'

here we force the value inside gitsha.xml to have length 6

also here

"sha" : substring($request?1?sha, 1, 6)

and here

[substring(array:get($request, $size)?sha, 1, 6) , array:get($request, $size)?commit?message]

and here

[substring(array:get($request, $size)?short_id, 1, 6) , array:get($request, $size)?message]

and here

[substring(array:get($request, $size)?short_id, 1, 6) , array:get($request, $size)?message]

and a few more …

TODO: add tests
TODO: incomplete but git search to the rescue

line-o commented

This command will always output 7 leading characters of the git sha git describe --tags --always HEAD