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:
parent
07123f4002
commit
d47ae541ce
7
git-gui
7
git-gui
@ -797,8 +797,11 @@ proc load_all_remotes {} {
|
|||||||
set all_remotes [list]
|
set all_remotes [list]
|
||||||
set rm_dir [file join $gitdir remotes]
|
set rm_dir [file join $gitdir remotes]
|
||||||
if {[file isdirectory $rm_dir]} {
|
if {[file isdirectory $rm_dir]} {
|
||||||
set all_remotes [concat $all_remotes \
|
set all_remotes [concat $all_remotes [glob \
|
||||||
[glob -types f -tails -directory $rm_dir * *]]
|
-types f \
|
||||||
|
-tails \
|
||||||
|
-nocomplain \
|
||||||
|
-directory $rm_dir *]]
|
||||||
}
|
}
|
||||||
|
|
||||||
set fd_rc [open "| git repo-config --list" r]
|
set fd_rc [open "| git repo-config --list" r]
|
||||||
|
Loading…
Reference in New Issue
Block a user