Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #9772

Closed
Open
Created Oct 26, 2015 by Administrator@rootOwner

Getting error when try git push locally

Created by: visnupriya

Hi, I installed gitlab for contribution and clone gitlab, git-shell locally and tried to run in development mode. I set-up gitlab in my local system instead "git" system and changed the "default" name in gitlab and git-shell.

I can run gitlab at http://localhost:3000 and configured ssh key and created sample project and cloned it using the following command

git clone visnupriya@localhost:/home/visnupriya/git/repositories/visnupriya/test-public-project.git

and tried to push code and getting following error

visnupriya@localhost's password: 
Counting objects: 3, done.
Writing objects: 100% (3/3), 207 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: /home/visnupriya/git/gitlab-shell/lib/gitlab_net.rb:16:in `check_access': undefined method `join' for #<Enumerator:0x00000001d1f118> (NoMethodError)
remote:     from /home/visnupriya/git/gitlab-shell/lib/gitlab_access.rb:23:in `exec'
remote:     from hooks/pre-receive:13:in `<main>'
To visnupriya@localhost:/home/visnupriya/git/repositories/visnupriya/test-public-project.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'visnupriya@localhost:/home/visnupriya/git/repositories/visnupriya/test-public-project.git'

Any idea?

Assignee
Assign to
Time tracking