GitLab server-side hook not running – how to forward a git-push

Recently I installed GitLab (v8.3.3) on my server and mounted my existing repositories with NFS in place of repositories created for my gitlab group.

I want to make GitLab to show all of my activity for current repo in GitLab Activity feed so I checked whether it’s working or not (it is not).

  • Ansible Repo - structure
  • How do I use git-tfs and idiomatic git branching against a TFS repository?
  • Ant compiling wrong version after git checkout
  • Can someone explain this interesting git merging behaviour
  • Why can't I delete a remote git branch with git push origin :branchname?
  • How to use tags for versioning in git gui
  • I have noticed that my old repositories (not created by gitlab) have only hooks examples so I replaced them with GitLab hooks (post-receive, pre-receive and update).

    Now when I clone repository with path provided by GitLab (i.e. and then push – the activity is visible via GitLab.
    On the other hand when I clone via direct link to repo (i.e. ssh://<user_name>@ – the activity does not show in Dashboard/Activity.

    My question:
    How to make GitLab to update Activity from both remote paths?
    Does this have something to do with changing those hooks?

    I just noticed that my git repo is on one server and my GitLab is on another machine. Hooks directory is symlinked so on original git server hooks directory is a link pointing to nowhere.

    Can I forward a “git push” from one machine to GitLab server?

  • Unable to execute - Git P4 clone broken
  • Is there a GIT api that can tell if a specific line of a file has a whitespace only change
  • git - Still cannot push to non-bare repo after setting receive.denycurrentbranch=ignore
  • What do edge colors mean in gitk?
  • Is there an equivalent to Visual SourceSafe's Shadow Directories in other VCS?
  • Git: Push newly created local submodules up to Github and Bitbucket
  • 2 Solutions collect form web for “GitLab server-side hook not running – how to forward a git-push”

    I would say that you would have to install a script that you would point to from your authorized_keys file. It would have to examine the commands passed to it and run the same gitlab-shell as is run by the git user, in case it is a git command.

    Normally your git commands over ssh will not run in the gitlab shell, but the standard git commands.

    Ideally you would only use your GitLab server from now on to manage the repos, as it will be managing users and their keys. While you could setup a post-receive hook on youre repo server that adds the redis job with the data (this is what triggers the activity, and is mostly all you are missing here) You won’t be able to easily credit the right users without the same key-ids as the gitlab server. You could create a system user in GitLab that you always would credit pushes to your repos server with. But that is probably less than ideal.

    Git Baby is a git and github fan, let's start git clone.