All of lore.kernel.org
 help / color / mirror / Atom feed
* how to fetch entire heirarchy of refs from a remote?
@ 2016-01-07 23:06 Jacob Keller
  2016-01-07 23:15 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Jacob Keller @ 2016-01-07 23:06 UTC (permalink / raw)
  To: Git mailing list

Hi,

Say I have a repository which has a series of refs in a heirarchy such
as a gerrit repository with changes specified something like:

refs/changes/96/55596/3
refs/changes/96/55596/4
refs/changes/96/57496/1
refs/changes/96/57496/2
refs/changes/96/69796/1
refs/changes/96/69796/2
refs/changes/96/71696/1
refs/changes/96/71696/2
refs/changes/97/40197/1
refs/changes/97/40197/2
refs/changes/97/40197/3
refs/changes/97/40197/4
...
refs/changes/97/71697/2
refs/changes/97/71697/3
refs/changes/98/47298/1
refs/changes/98/47298/2
refs/changes/98/47298/3
refs/changes/98/57298/1
refs/changes/98/57298/2
refs/changes/98/73598/1
refs/changes/99/44099/1
refs/changes/99/69299/1


Is it possible to specify a refspec such that all of these will be
fetched? I tried doing

+refs/changes/*:refs/changes/*

but this doesn't work since the * can only be one portion of a refspec

The problem is that I would like to be able to pull all of these
changes in a git mirror so that I can reduce network traffic I use to
the gerrit server, by updating my local copy once and using the local
copy on the other tasks I need. This is necessary since the gerrit
server is (a) far away and (b) closes my connection when I have too
many requests.

But, git clone --mirror and git fetch have failed to pull every ref,
and only end up with heads and tags.

Regards,
Jake

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-01-08 16:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-07 23:06 how to fetch entire heirarchy of refs from a remote? Jacob Keller
2016-01-07 23:15 ` Junio C Hamano
2016-01-07 23:23   ` Jacob Keller
2016-01-07 23:25   ` Jacob Keller
2016-01-07 23:36 ` Jacob Keller
2016-01-07 23:45   ` Junio C Hamano
2016-01-08 16:30     ` Jacob Keller
2016-01-07 23:39 ` Jacob Keller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.