summaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2007-01-30 05:53:28 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-02-06 01:14:15 (GMT)
commit0f57a31b4c7f8784b70535681a669b7746f38f1c (patch)
tree980860288bb1357f664247c96b613c044d8b4dbc /gitk
parent3468e71f452701b3eff6a2aeb826bbe0cdad8270 (diff)
downloadgit-0f57a31b4c7f8784b70535681a669b7746f38f1c.zip
git-0f57a31b4c7f8784b70535681a669b7746f38f1c.tar.gz
git-0f57a31b4c7f8784b70535681a669b7746f38f1c.tar.bz2
gitk: Use show-ref instead of ls-remote
It used to be ls-remote on self was the only easy way to grab the ref information. Now we have show-ref which does not involve fork and IPC, so use it. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitk b/gitk
index 8132812..1c36235 100755
--- a/gitk
+++ b/gitk
@@ -309,9 +309,9 @@ 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 show-ref] r]
while {0 <= [set n [gets $refd line]]} {
- if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
+ if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
match id path]} {
continue
}