Git development
 help / color / mirror / Atom feed
* [PATCH] gitk: Use git wrapper to run git-ls-remote.
@ 2006-03-30 12:31 Mark Wooding
  2006-03-30 18:08 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Wooding @ 2006-03-30 12:31 UTC (permalink / raw)
  To: git

From: Mark Wooding <mdw@distorted.org.uk>

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>
---

 gitk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitk b/gitk
index f4c6624..ac85d1c 100755
--- a/gitk
+++ b/gitk
@@ -359,7 +359,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]} {

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-30 23:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-30 12:31 [PATCH] gitk: Use git wrapper to run git-ls-remote Mark Wooding
2006-03-30 18:08 ` Junio C Hamano
2006-03-30 18:26   ` Mark Wooding
2006-03-30 23:20     ` Johannes Schindelin
2006-03-30 20:13   ` Christopher Faylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox