aboutsummaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-11-07 03:00:20 -0500
committerShawn O. Pearce <spearce@spearce.org>2006-11-07 03:05:34 -0500
commitd47ae541cef50f5fbfaec195597cf1cebc2840f5 (patch)
tree3378ab2dab8fb1bf021b06544f2148cdc86f22a2 /git-gui
parent07123f4002efdb881f6ce08c5c4411e17e34e141 (diff)
downloadgit-d47ae541cef50f5fbfaec195597cf1cebc2840f5.tar.xz
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>
Diffstat (limited to 'git-gui')
-rwxr-xr-xgit-gui7
1 files changed, 5 insertions, 2 deletions
diff --git a/git-gui b/git-gui
index 0cd85e3c92..b8e7c89586 100755
--- 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]