From: Shawn O. Pearce Date: Mon, 24 Sep 2007 12:26:07 +0000 (-0400) Subject: git-gui: Don't bother showing OS error message about hardlinks X-Git-Tag: gitgui-0.9.0~59 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=40f86af01b061fbbd1e46d125280073322bf9f33;p=git.git 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 --- diff --git a/lib/choose_repository.tcl b/lib/choose_repository.tcl index 5f2d12fd0..9074c1ba5 100644 --- a/lib/choose_repository.tcl +++ b/lib/choose_repository.tcl @@ -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]]