From: Shawn O. Pearce Date: Tue, 7 Nov 2006 08:00:20 +0000 (-0500) Subject: git-gui: Don't complain if no .git/remotes exist. X-Git-Tag: gitgui-0.6.0~289 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d47ae541cef50f5fbfaec195597cf1cebc2840f5;p=git.git git-gui: Don't complain if no .git/remotes exist. The user might be using the new style config syntax remote.name.url rather than the older standalone remote file. Signed-off-by: Shawn O. Pearce --- diff --git a/git-gui b/git-gui index 0cd85e3c9..b8e7c8958 100755 --- a/git-gui +++ b/git-gui @@ -797,8 +797,11 @@ proc load_all_remotes {} { set all_remotes [list] set rm_dir [file join $gitdir remotes] if {[file isdirectory $rm_dir]} { - set all_remotes [concat $all_remotes \ - [glob -types f -tails -directory $rm_dir * *]] + set all_remotes [concat $all_remotes [glob \ + -types f \ + -tails \ + -nocomplain \ + -directory $rm_dir *]] } set fd_rc [open "| git repo-config --list" r]