aboutsummaryrefslogtreecommitdiff
path: root/gitk
diff options
context:
space:
mode:
authorMark Wooding <mdw@distorted.org.uk>2006-04-03 23:24:55 -0700
committerPaul Mackerras <paulus@samba.org>2006-04-05 10:28:34 +1000
commitce08872259d3036f424070cb5a9a4d5ec67f1f7a (patch)
tree6cad5ef1f9a6ecbf824e8df60168795cbc8b0b22 /gitk
parent6e5f7203de440fd46c6709a9f71a7e0641363a5c (diff)
downloadgit-ce08872259d3036f424070cb5a9a4d5ec67f1f7a.tar.gz
git-ce08872259d3036f424070cb5a9a4d5ec67f1f7a.tar.xz
[PATCH] gitk: Use git wrapper to run git-ls-remote.
For some reason, the Cygwin Tcl's `exec' command has trouble running scripts. Fix this by using the C `git' wrapper. Other GIT programs run by gitk are written in C already, so we don't need to incur a performance hit of going via the wrapper (which I'll bet isn't pretty under Cygwin). Signed-off-by: Mark Wooding <mdw@distorted.org.uk> Acked-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'gitk')
-rwxr-xr-xgitk2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitk b/gitk
index 8aff933e4..26099215a 100755
--- a/gitk
+++ b/gitk
@@ -284,7 +284,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 ls-remote [gitdir]] r]
while {0 <= [set n [gets $refd line]]} {
if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
match id path]} {