Re: Fetching commit instead of ref

2017-12-22 Thread Junio C Hamano
"Carlsson, Magnus" writes: > $ git fetch subrepo > 50f730db793e0733b159326c5a3e78fd48cedfec:refs/remote/subrepo/foo-commit > remote: Counting objects: 2311, done. > remote: Total 2311 (delta 0), reused 0 (delta 0), pack-reused 2311 > -- >>> Receiving objects: 100% (2311/2311), 703.64 KiB | 0 byt

Re: Fetching commit instead of ref

2017-12-19 Thread Carlsson, Magnus
eceived this message in error, please notify the Sender immediately and destroy the attached message (and all attached documents). From: Junio C Hamano Sent: Tuesday, December 19, 2017 17:07 To: Carlsson, Magnus Cc: git@vger.kernel.org Subject: Re:

Re: Fetching commit instead of ref

2017-12-19 Thread Junio C Hamano
"Carlsson, Magnus" writes: > I understand that you don't want to allow people fetching single > commits all the time, but is there a reason that you don't allow > SHA instead of references when you fetch an entire tree? I do not think we don't want to allow "single commit" fetch. We do not allo

Re: Fetching commit instead of ref

2017-12-19 Thread Carlsson, Magnus
: Junio C Hamano Sent: Monday, December 18, 2017 19:44 To: Carlsson, Magnus Cc: git@vger.kernel.org Subject: Re: Fetching commit instead of ref "Carlsson, Magnus" writes: > > So far so good, but then an error message appear: > error: Serv

Re: Fetching commit instead of ref

2017-12-18 Thread Junio C Hamano
"Carlsson, Magnus" writes: > > So far so good, but then an error message appear: > error: Server does not allow request for unadvertised object > 50f730db793e0733b159326c5a3e78fd48cedfec > > And nothing seems to be fetched. Yes, that is what the error message is telling you. You'd ne

Re: Fetching commit instead of ref

2017-12-18 Thread Stefan Beller
On Mon, Dec 18, 2017 at 4:30 AM, Carlsson, Magnus wrote: > Hi > > I am involved in the git-subrepo project > (https://github.com/ingydotnet/git-subrepo/). It's an attempt to simplify the > inclusion of repos into other repos. > > In a certain situation I would really need to fetch all commits re

Re: Fetching commit instead of ref

2017-12-18 Thread Jonathan Tan
On Mon, 18 Dec 2017 12:30:23 + "Carlsson, Magnus" wrote: > In a certain situation I would really need to fetch all commits > related to a specific commit (SHA). I have read the git fetch > documentation and found nothing regarding this. It only seems to > support fetching references. The doc

Fetching commit instead of ref

2017-12-18 Thread Carlsson, Magnus
Hi I am involved in the git-subrepo project (https://github.com/ingydotnet/git-subrepo/). It's an attempt to simplify the inclusion of repos into other repos. In a certain situation I would really need to fetch all commits related to a specific commit (SHA). I have read the git fetch documenta