AFAIK soft linking is not possible - the Gitlab troubleshooting guide says 
so: 
https://github.com/gitlabhq/gitlab-public-wiki/wiki/Trouble-Shooting-Guide#gitlab-shell
 
and the config.yml file contains:

# Repositories path
# Give the canonicalized absolute pathname,
# REPOS_PATH MUST NOT CONTAIN ANY SYMLINK!!!
# Check twice that none of the components is a symlink, including "/home".
repos_path: "/var/opt/gitlab/git-data/repositories"

So I think that's likely to be your problem 

On Thursday, April 30, 2015 at 9:18:01 PM UTC-7, Austin Mico wrote:
>
> Hi,
>
> It is not just about the cloning process. I am trying to link my 
> repositories. Either repositories created through gitlab or repositories 
> manually created. The problem is that soft linking the repository does not 
> work? Anyone experienced this already?
>
> For example:
> If I have an existing repository /var/git/testrepo.git and I want it on 
> the home of git user account in /home/git/git-repositories.
> I will do
>     ln -s /var/git/testrepo.git /home/git/git-repositories/testrepo.git
>
> After that if I clone with
>
>    git clone git@githost:git-repositories/testrepo.git
>
> The client prompts that it cannot find the repository.
> But if you do
>    git clone --bare file:///var/git/testrepo.git 
> /home/git/git-repositories/testrepo.git
>
> and peform git clone
>  
>     git clone git@githost:git-repositories/testrepo.git
>
> and it works.
>
> Is it really possible to use soft linking? Or I just missed something. I 
> made git a member of apache and made the repositories group writable by 
> apache. I have also set the repositories as a shared repository as 
> suggested by some on the net.
>
> Any ideas.
>
> Thanks,
>
> Austin
>
>
>
> On Monday, April 27, 2015 at 11:10:41 PM UTC+8, Karen Carias wrote:
>>
>> Hello Austin. Cloning may be tricky, but here's a similar situation 
>> solved http://stackoverflow.com/questions/6167905/git-clone-through-ssh
>>
>> Regards,
>>
>> Karen
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to gitlabhq+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/87bee971-ea29-4135-83d7-f4bacc4aa4a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to