зеркало из https://github.com/microsoft/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 <spearce@spearce.org>
This commit is contained in:
Родитель
07123f4002
Коммит
d47ae541ce
7
git-gui
7
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]
|
||||
|
|
Загрузка…
Ссылка в новой задаче