Git development
 help / color / mirror / Atom feed
* builtin-clone does not fallback to copy when link fails
@ 2008-05-20 16:28 Brandon Casey
  2008-05-20 16:45 ` Brandon Casey
  0 siblings, 1 reply; 6+ messages in thread
From: Brandon Casey @ 2008-05-20 16:28 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: Git Mailing List, Johannes Schindelin



When cloning with the new builtin-clone, if the src repo is not
on the same disk as the dest repo, cloning fails. This is because
hard linking does not fall back to copying like the shell version
did.

The shell version also made a distinction between defaulting to
hard linking and an explicit request to hard link. In the latter
case it would not fall back to copying, but would die.

I'll also mention that the 'use_local_hardlinks' variable in cmd_clone
is not used. It looks like there was some initial thought that this
variable would be used and then an alternative solution was found
where option_no_hardlinks was accessed directly. So use_local_hardlinks
should probably be cleaned out.

-brandon

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

end of thread, other threads:[~2008-05-20 21:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20 16:28 builtin-clone does not fallback to copy when link fails Brandon Casey
2008-05-20 16:45 ` Brandon Casey
2008-05-20 17:22   ` Brandon Casey
2008-05-20 18:16   ` Daniel Barkalow
2008-05-20 18:44     ` Brandon Casey
2008-05-20 21:48     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox