[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>
Mark Wooding committed
Apr 3, 2006 at 23:24 UTC
ce08872259d3036f424070cb5a9a4d5ec67f1f7a
1 file changed
+1
-1
gitk
+1
-1
@@ -284,7 +284,7 @@ proc readrefs {} {
284
foreach v {tagids idtags headids idheads otherrefids idotherrefs} {
285
catch {unset $v}
286
}
287
- set refd [open [list | git-ls-remote [gitdir]] r]
287
+ set refd [open [list | git ls-remote [gitdir]] r]
288
while {0 <= [set n [gets $refd line]]} {
289
if {![regexp {^([0-9a-f]{40}) refs/([^^]*)$} $line \
290
match id path]} {