gitk: Use peek-remote instead of ls-remote.

git --git-dir is certainly always local, so there is no need to ask for
the advanced services of ls-remote.
This commit is contained in:
Johannes Sixt
2007-01-26 14:41:01 +01:00
parent 46580d2192
commit 8c8bb94f94

2
gitk
View File

@@ -309,7 +309,7 @@ proc readrefs {} {
foreach v {tagids idtags headids idheads otherrefids idotherrefs} {
catch {unset $v}
}
set refd [open [list | git ls-remote [gitdir]] r]
set refd [open [list | git peek-remote [gitdir]] r]
while {0 <= [set n [gets $refd line]]} {
if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
match id path]} {