`CLOCK_MONOTONIC` requires ruby >= 2.1
With gitlab-shell >= 3.6.5
, metrics was introduced and it made gitlab-shell incompatible with ruby 2.0.x
.
Trying to push code that runs with gitlab-shell >= 3.6.5
and ruby 2.0.x
gives me the following error message:
/home/git/gitlab-shell/lib/gitlab_metrics.rb:24:in `monotonic_time': uninitialized constant Process::CLOCK_MONOTONIC (NameError)
from /home/git/gitlab-shell/lib/gitlab_metrics.rb:44:in `measure'
from /home/git/gitlab-shell/lib/gitlab_shell.rb:37:in `exec'
from /home/git/gitlab-shell/bin/gitlab-shell:20:in `<main>'
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.