git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitk - restore operation of git-reset on Cygwin
@ 2008-05-23  3:00 Mark Levedahl
  2008-05-23  3:46 ` Paul Mackerras
  0 siblings, 1 reply; 5+ messages in thread
From: Mark Levedahl @ 2008-05-23  3:00 UTC (permalink / raw)
  To: paulus; +Cc: git, Mark Levedahl

Commit 6df7403a98737 modified the call to git-reset to invoke git
directly rather than using "sh -c", but is redirecting stderr to stdout.
This does not work on Cygwin, probably because the Tcl/Tk package is
a windows program rather than Cygwin. The result is always an error
message proclaiming 'can not find channel named "1"'. This restores
invocation through sh -c.

Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
---
Note - this applies to Paul's tree, please let me know if you prefer
one that applies to Junio's instead (gitk-git/gitk rather than gitk).

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

diff --git a/gitk b/gitk
index 22bcd18..aa70911 100755
--- a/gitk
+++ b/gitk
@@ -7617,7 +7617,7 @@ proc resethead {} {
     tkwait window $w
     if {!$confirm_ok} return
     if {[catch {set fd [open \
-	    [list | git reset --$resettype $rowmenuid 2>@1] r]} err]} {
+	    [list | sh -c "git reset --$resettype $rowmenuid 2>&1"] r]} err]} {
 	error_popup $err
     } else {
 	dohidelocalchanges
--
1.5.5.1.333.gd69f4

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

end of thread, other threads:[~2008-05-23 23:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-23  3:00 [PATCH] gitk - restore operation of git-reset on Cygwin Mark Levedahl
2008-05-23  3:46 ` Paul Mackerras
2008-05-23 22:26   ` Mark Levedahl
2008-05-23 23:13     ` Mark Levedahl
2008-05-23 23:17       ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).