Re: [git-users] Namespaces, git-remote-ext and http

2015-01-26 Thread Thomas Ferris Nicolaisen
On Monday, January 26, 2015 at 6:24:51 PM UTC+1, Thomas Schulte wrote:
>
> Am 26.01.2015 um 17:49 schrieb Thomas Ferris Nicolaisen  >:
>
> On Saturday, January 24, 2015 at 2:40:39 AM UTC+1, Thomas Schulte wrote:
>>
>> Hello, 
>>   
>> I'm struggling with a repository that contains some namespaces. 
>> The following basically shows what I'm trying: 
>>
>> --8<-- 
>> $ git init --bare myrepo.git 
>> Initialized empty Git repository in d:/test/myrepo.git/ 
>>   
>> $ git clone myrepo.git/ 
>> Cloning into 'myrepo'... 
>> warning: You appear to have cloned an empty repository. 
>> done. 
>>   
>> $ git clone ext::'git --namespace=project-one %s d:/test/myrepo.git' 
>> myrepo-project-one 
>> Cloning into 'myrepo-project-one'... 
>> warning: You appear to have cloned an empty repository. 
>> --8<-- 
>>   
>> As you can see, this is quite fine :-) 
>> It's also no problem to place this repository on a http server: 
>>
>> --8<-- 
>> $ git clone http://server/path/to/myrepo.git tools 
>> Cloning into 'tools'... 
>> Unpacking objects: 100% (6/6), done. 
>> --8<-- 
>>
>> But why does the following go wrong? 
>>
>> --8<-- 
>> $ git clone ext::'git --namespace=project-one %s 
>> http://server/path/to/myrepo.git' mytest 
>> Cloning into 'mytest'... 
>> fatal: 'http://server/path/to/myrepo.git' does not appear to be a git 
>> repository 
>> fatal: Could not read from remote repository. 
>>
>> Please make sure you have the correct access rights 
>> and the repository exists. 
>> --8<-- 
>>
>> URL checked multiple times, it's exactly the same as used in "git clone 
>> http...". 
>> Any hints? 
>>
>>
> What backend is behind that http server?
>
> The docs here [1] state:
>
> The smart HTTP server, git-http-backend[1] 
>> , will pass GIT_NAMESPACE 
>> through to the backend programs; see git-http-backend[1] 
>>  for sample configuration to 
>> expose repository namespaces as repositories.
>
>
> Are you sure your server is passing this parameter onwards to the backend?
>
> [1] http://git-scm.com/docs/gitnamespaces
>
>
> The server is a Microsoft TFS Server 2013. I'm trying to find a way to 
> provide one repository that contains multiple tools for various projects. 
> But each of these projects only uses a subset of these tools and I want to 
> limit the size of the clones. 
>
> Thanks.
>
>
OK, then I think it's safe to assume that TFS Server does not yet support 
namespaces.

Namespaces are primarily for separating repositories that contain much of 
the same objects. Or branches of the same software that you want to keep 
isolated from eachother. Given your usecase, I think you'd be better off 
just using a different repository for each tool.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Namespaces, git-remote-ext and http

2015-01-26 Thread Thomas Schulte
Am 26.01.2015 um 17:49 schrieb Thomas Ferris Nicolaisen :

> On Saturday, January 24, 2015 at 2:40:39 AM UTC+1, Thomas Schulte wrote:
> Hello, 
>   
> I'm struggling with a repository that contains some namespaces. 
> The following basically shows what I'm trying: 
> 
> --8<-- 
> $ git init --bare myrepo.git 
> Initialized empty Git repository in d:/test/myrepo.git/ 
>   
> $ git clone myrepo.git/ 
> Cloning into 'myrepo'... 
> warning: You appear to have cloned an empty repository. 
> done. 
>   
> $ git clone ext::'git --namespace=project-one %s d:/test/myrepo.git' 
> myrepo-project-one 
> Cloning into 'myrepo-project-one'... 
> warning: You appear to have cloned an empty repository. 
> --8<-- 
>   
> As you can see, this is quite fine :-) 
> It's also no problem to place this repository on a http server: 
> 
> --8<-- 
> $ git clone http://server/path/to/myrepo.git tools 
> Cloning into 'tools'... 
> Unpacking objects: 100% (6/6), done. 
> --8<-- 
> 
> But why does the following go wrong? 
> 
> --8<-- 
> $ git clone ext::'git --namespace=project-one %s 
> http://server/path/to/myrepo.git' mytest 
> Cloning into 'mytest'... 
> fatal: 'http://server/path/to/myrepo.git' does not appear to be a git 
> repository 
> fatal: Could not read from remote repository. 
> 
> Please make sure you have the correct access rights 
> and the repository exists. 
> --8<-- 
> 
> URL checked multiple times, it's exactly the same as used in "git clone 
> http...". 
> Any hints? 
> 
> 
> What backend is behind that http server?
> 
> The docs here [1] state:
> 
> The smart HTTP server, git-http-backend[1], will pass GIT_NAMESPACE through 
> to the backend programs; see git-http-backend[1] for sample configuration to 
> expose repository namespaces as repositories.
> 
> 
> Are you sure your server is passing this parameter onwards to the backend?
> 
> [1] http://git-scm.com/docs/gitnamespaces


The server is a Microsoft TFS Server 2013. I'm trying to find a way to provide 
one repository that contains multiple tools for various projects. But each of 
these projects only uses a subset of these tools and I want to limit the size 
of the clones. 

Thanks.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Namespaces, git-remote-ext and http

2015-01-23 Thread Thomas Schulte
Hello,
 
I'm struggling with a repository that contains some namespaces.
The following basically shows what I'm trying:

--8<--
$ git init --bare myrepo.git
Initialized empty Git repository in d:/test/myrepo.git/
 
$ git clone myrepo.git/
Cloning into 'myrepo'...
warning: You appear to have cloned an empty repository.
done.
 
$ git clone ext::'git --namespace=project-one %s d:/test/myrepo.git' 
myrepo-project-one
Cloning into 'myrepo-project-one'...
warning: You appear to have cloned an empty repository.
--8<--
 
As you can see, this is quite fine :-)
It's also no problem to place this repository on a http server:

--8<--
$ git clone http://server/path/to/myrepo.git tools
Cloning into 'tools'...
Unpacking objects: 100% (6/6), done.
--8<--

But why does the following go wrong?

--8<--
$ git clone ext::'git --namespace=project-one %s 
http://server/path/to/myrepo.git' mytest
Cloning into 'mytest'...
fatal: 'http://server/path/to/myrepo.git' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
--8<--

URL checked multiple times, it's exactly the same as used in "git clone 
http...".
Any hints?

Thanks in advance,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.