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>
This commit is contained in:
Shawn O. Pearce 2006-11-07 03:00:20 -05:00
Родитель 07123f4002
Коммит d47ae541ce
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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]