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 <spearce@spearce.org>
Shawn O. Pearce committed
Nov 7, 2006 at 03:00 UTC
d47ae541cef50f5fbfaec195597cf1cebc2840f5
1 file changed
+5
-2
git-gui
+5
-2
@@ -797,8 +797,11 @@ proc load_all_remotes {} {
797
set all_remotes [list]
798
set rm_dir [file join $gitdir remotes]
799
if {[file isdirectory $rm_dir]} {
800
- set all_remotes [concat $all_remotes \
801
- [glob -types f -tails -directory $rm_dir * *]]
800
+ set all_remotes [concat $all_remotes [glob \
801
+ -types f \
802
+ -tails \
803
+ -nocomplain \
804
+ -directory $rm_dir *]]
805
}
806
807
set fd_rc [open "| git repo-config --list" r]