[go: up one dir, main page]

git-shell errors on v2.4.0

Making a pull with the latest version returns this error:

git pull
/usr/share/gems/gems/json-1.7.7/lib/json/common.rb:155:in `parse': 757: unexpected token at 'true' (JSON::ParserError)
	from /usr/share/gems/gems/json-1.7.7/lib/json/common.rb:155:in `parse'
	from /home/git/gitlab-shell/lib/gitlab_access_status.rb:13:in `create_from_json'
	from /home/git/gitlab-shell/lib/gitlab_net.rb:31:in `check_access'
	from /home/git/gitlab-shell/lib/gitlab_shell.rb:63:in `validate_access'
	from /home/git/gitlab-shell/lib/gitlab_shell.rb:24:in `exec'
	from /home/git/gitlab-shell/bin/gitlab-shell:16:in `<main>'
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

It seems to be from /home/git/gitlab-shell/lib/gitlab_net.rb

    resp = post(url, params)

    if resp.code == '200'
      GitAccessStatus.create_from_json(resp.body)
    else
      GitAccessStatus.new(false, "API is not accesible")
    end

resp.body is not a json, but the word "true"

Edited by Peter Leitzen