Skip to content

Commit 8e54ea2

Browse files
committed
[bugfix] Fix xs:double to xs:string type error by explicit xs:string construction
1 parent c3257a6 commit 8e54ea2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/git-commit.xql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ declare function gitcommit:step1($data as item()*,$path as xs:string?, $commit-m
8484

8585
declare function gitcommit:step2($data as item()*,$path as xs:string?, $commit-message as xs:string?, $branch-sha as xs:string?){
8686
(: 2. create a new branch :)
87-
let $branch-name := concat(replace($path,'/|\.',''),'-',replace(util:random(),'\.',''))
87+
let $branch-name := concat(replace($path,'/|\.',''),'-',replace(xs:string(util:random()),'\.',''))
8888
let $new-branch-name :=
8989
serialize(
9090
<object>

0 commit comments

Comments
 (0)