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
  • #3755

Closed
Open
Created Apr 26, 2013 by Administrator@rootOwner

can't push because git url is incorrect in gitlab

Created by: kellyelton

So I get the following url from gitlab for a newly created project

git@gitsource:kellye/calendar-tool-of-doom.git

That gives me a back a 'does not appear to be a git repository error'

So on a hunch I tried this

git@gitsource:repositories/kellye/calendar-tool-of-doom.git

and it worked fine.

I'll note that I changed the repos_path in gitlab.yml and config.yml(in git-shell) to a raided folder /source/repositories/ instead.

Any ideas how I can get that url to be correct, or fix my problem?

Also I made a symbolic link from /home/git/repositories to /source/repositories, so it's pulling the beginning repositories path pieces from that symbolic link.

That means that when I do a git pull, the root directory is the /home/git directory...something isn't set up right and I'm not sure what it is.

I tried even putting a cd /source/repositories into my .profile .bash_rc and .ssh/config and that didn't help either.

I've since moved the raid to /home/git/repositories and put all my files there, and updated all my config files and it still has the root set to /home/git instead of /home/git/repositories

That isn't a problem, what the problem is is the fact that inside of gitlab, it shows the url as git@gitsource:kellye/amazon-bucket-loader.git. All I care about is that it is correct, so even if it showed git@gitsource:repositories/kellye/amazon-bucket-loader.git instead I wouldn't care.

Assignee
Assign to
Time tracking