git-gui: Don't complain if no .git/remotes exist.
[gitweb.git] / git-gui
diff --git a/git-gui b/git-gui
index 0cd85e3c92fe1e596f1733f0ca189f60480583cd..b8e7c8958639a54d57ac62fdb6099540fe7cbf7a 100755 (executable)
--- 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]