Skip to content

Instantly share code, notes, and snippets.

@Zordrak
Last active August 29, 2015 14:02
Show Gist options
  • Save Zordrak/76c5bd0d90f2b69af025 to your computer and use it in GitHub Desktop.
Save Zordrak/76c5bd0d90f2b69af025 to your computer and use it in GitHub Desktop.
Git Path determines server update hook ruby version
16:39:30 git@gitlab 0:~/gitlab-satellites/tools/clubs-deploy$ which git
/usr/bin/git
16:39:35 git@gitlab 0:~/gitlab-satellites/tools/clubs-deploy$ git push origin master
Counting objects: 1, done.
Writing objects: 100% (1/1), 247 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
remote: 2.0.0
remote: GitLab: You are not allowed to access master!
remote: error: hook declined to update refs/heads/master
To /home/git/repositories/tools/clubs-deploy.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '/home/git/repositories/tools/clubs-deploy.git'
16:39:39 git@gitlab 0:~/gitlab-satellites/tools/clubs-deploy$ /usr/bin/git push origin master
Counting objects: 1, done.
Writing objects: 100% (1/1), 247 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
remote: hooks/update:12: undefined method `require_relative' for main:Object (NoMethodError)
remote: 1.8.7
remote: error: hook declined to update refs/heads/master
To /home/git/repositories/tools/clubs-deploy.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to '/home/git/repositories/tools/clubs-deploy.git'
16:41:20 git@gitlab 0:~/gitlab-satellites/tools/clubs-deploy$ git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
16:41:22 git@gitlab 0:~/gitlab-satellites/tools/clubs-deploy$ git remote -v
origin /home/git/repositories/tools/clubs-deploy.git (fetch)
origin /home/git/repositories/tools/clubs-deploy.git (push)
source /home/git/repositories/tools/clubs-deploy.git (fetch)
source /home/git/repositories/tools/clubs-deploy.git (push)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment