Short-cut error return path in git-local-pull.
authorJunio C Hamano <junkio@cox.net>
Wed, 4 May 2005 08:28:45 +0000 (01:28 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 4 May 2005 08:28:45 +0000 (01:28 -0700)
commitfd0ffd3ad12d6aa49b8ac2cce7728976d678cc63
treee9d352181052a3e8a4e4ff25611a14f9aa3a533d
parentb2d62f161ebfb628cbe32900213ac18f9aa5bcb4
Short-cut error return path in git-local-pull.

When git-local-pull with -l option gets ENOENT attempting to create
a hard link, there is no point falling back to other copy methods.
With this patch, git-local-pull detects such a case and gives up
copying the file early.

Signed-off-by: Junio C Hamano <junkio@cox.net>
local-pull.c