git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Pushing/fetching from/into a shallow-cloned repository
@ 2013-04-18  9:52 Konstantin Khomoutov
  2013-04-18  9:59 ` Konstantin Khomoutov
  2013-04-18 20:27 ` Philip Oakley
  0 siblings, 2 replies; 6+ messages in thread
From: Konstantin Khomoutov @ 2013-04-18  9:52 UTC (permalink / raw)
  To: git

The git-clone manual page, both [1] and my local copy coming with
Git for Windows 1.8.1, say about the --depth command-line option:

   --depth <depth>

     Create a shallow clone with a history truncated to the specified
     number of revisions. A shallow repository has a number of
     limitations (you cannot clone or fetch from it, nor push from nor
     into it), but is adequate if you are only interested in the recent
     history of a large project with a long history, and would want to
     send in fixes as patches.

But having done a shallow clone (--depth=1) of one of my repositories,
I was able to record a new commit, push it out to a "reference" bare
repository and then fetch back to another clone of the same repository
just fine.  I have then killed my test commit doing a forced push from
another clone and subsequently was able to do `git fetch` in my shallow
clone just fine.

So I observe pushing/fetching works OK at least for a simple case like
this one.

Hence I'd like to ask: if the manual page is wrong or I'm observing
some corner case?

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

end of thread, other threads:[~2013-04-19 16:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18  9:52 Pushing/fetching from/into a shallow-cloned repository Konstantin Khomoutov
2013-04-18  9:59 ` Konstantin Khomoutov
2013-04-18 20:27 ` Philip Oakley
2013-04-18 22:46   ` Junio C Hamano
2013-04-19 16:02     ` Konstantin Khomoutov
2013-04-19 11:22   ` Duy Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).