GIT Server integrated with Redmine

1

I have a git server integrated with redmine, it is configured right and is being used by several people, but when the commit comment has double quotes (") it is not synchronized. I use a script, below the comet part:

function redmine_update_issue {
    redmine_host=$(git config redmine.host)
    redmine_apikey=$(git config $GL_USER.apikey)
    content="{\"issue\":{\"notes\":\"\nRealizado commit no GIT, detalhes:\n\n-Mensagem de Commit:\n $2\"}}"

    debug "funcao redmine_update_issue - content=$content - redmine_apikey=$redmine_apikey - redmine_host/1=$redmine_host/$1"
    curl --silent -k -H "Contet-Type: application/json" -X PUT --data "$contet" -H "X-Redmine-API-Key: $redmine_apikey" "$redmine_host/$1" }

Does anyone have any ideas?

Thanks in advance!

    
asked by anonymous 22.02.2016 / 13:29

0 answers