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.