This is a git feature, by default git during clone git creates a
subdirectory with the repo filename. Just go one directory up before
cloning. See http://git-scm.com/docs/git-clone

On Tue, Jul 29, 2014 at 6:53 PM, Carlos Sardo <[email protected]> wrote:
> Hi,
>
> I am in a middle of a Gitblit to Gitlab migration.
>
> When I am cloning a Gitlab repo (from my CruiseControl.NET build server -
> Windows 2008 R2), using the following command:
>
> D:\projects\clientabc\projectx\git clone
> https://gitlab.mycompany.com/clientabc/projectx.git
>
> The repo gets cloned successfully on my build server, but... it gets cloned
> to another subdirectory named "projectx", that gets automaticaly created...
> I end up with something like: D:\projects\clientabc\projectx\projectx - I
> don't want this!
>
> Weird thing is that in the same repo I have, in my (old) Gitblit server, if
> I run the same clone command from the same location: git clone
> https://gitblit.mycompany.com/clientabc/projectx.git - I don't get the extra
> sub-directory created, i end up with: D:\projects\clientabc\projectx\
>
> I know I can solve this issue with Gitlab by specify another directory using
> a specifc location in my git clone command, etc... But, What I would like to
> know is why does this happen? Is it a setting in Gitlab? Is it a local
> setting? Any clues?
>
> Hope that someone can help me with this!!
>
> Cheers,
> Carlos
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gitlabhq/9e572347-c49d-4f9c-a2b9-3a0137e6013a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/gitlabhq/CAEG31mP2wWgRPQPb4c9PEyjh42sZQ7WBk_6OJJqssGpWG4RBtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to