git-gui: Don't bother showing OS error message about hardlinks

If we failed to create our test hardlink for the first object
we need to link/copy then the only recourse we have is to make
a copy of the objects.  Users don't really need to know the OS
details about why the hardlink failed as its usually because
they are crossing filesystem boundaries.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Shawn O. Pearce 2007-09-24 08:26:07 -04:00
parent 354e114d74
commit 40f86af01b

View File

@ -496,10 +496,7 @@ method _do_clone2 {} {
[file join .git objects $i] \
[file join $objdir $i]
} err]} {
info_popup [strcat \
[mc "Hardlinks are unavailable. Falling back to copying."] \
"\n" \
$err]
info_popup [mc "Hardlinks are unavailable. Falling back to copying."]
set i [_copy_files $this $objdir $tolink]
} else {
set i [_link_files $this $objdir [lrange $tolink 1 end]]