git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 4/4] Add a basic test case for git send-email, and fix some real bugs discovered.

From
Alex Riesen <raa.lkml@gmail.com>
Date
May 30, 2006, 17:32 UTC
Message-ID
<81b0412b0605301032k1eb7ef4ageafaeb5b7f18e5ba@mail.gmail.com>
In-Reply-To
<20060530170805.GC32457@h4x0r5.com>
On 5/30/06, Ryan Anderson <ryan@michonline.com> wrote:
Show 12 quoted lines
> On Tue, May 30, 2006 at 06:00:20PM +0200, Alex Riesen wrote:
> > If you actually read the message, you'd probably notice ActiveState Perl.
> >
> > I have no idea why have you taken my post as an attempt to insult cygwin;
> > IF I had that in mind I'd dedicate a whole long post just to that.
>
> FWIW, it was probably this:
>         if test "$(uname -o)"= Cygwin; then
>
> (I only mention becuase I was about to apply this, then I saw that line,
> and now I'm confused, is this a fix for ActiveState, or Cygwin?)
>

Right. My bad. Should be "$(perl -e 'print $^O')" = MSWin32. That ($^O) is actually how it is checked in git-annotate.perl (open_pipe).

Christopher, my apologies if that was that. I actually am hostile to Windows and everything around it, and have my reasons for this. Still, it does not justify the way how I did that patch.

diff --git a/t/t9001-send-email.sh b/t/t9001-send-email.sh
index a61da1e..7afc358 100755
--- a/t/t9001-send-email.sh
+++ b/t/t9001-send-email.sh
@@ -25,6 +25,11 @@ test_expect_success \
      git add fake.sendmail
      GIT_AUTHOR_NAME="A" git commit -a -m "Second."'
 
+if test "$(perl -e 'print $^O')" = MSWin32; then
+    say "git-send-mail tests disabled on ActiveState Perl + Windows"
+    # because of windows being such a crap
+else
+
 test_expect_success \
     'Extract patches and send' \
     'git format-patch -n HEAD^1
@@ -38,4 +43,6 @@ test_expect_success \
     'Verify commandline' \
     'diff commandline expected'
 
+fi
+
 test_done
Previous: Ryan AndersonNext: Ryan Anderson
Message 9 of 10 in “Re: [PATCH 4/4] Add a basic test case for git send-email, and fix some real bugs discovered.”
  1. Junio C HamanoMay 30, 2006
  2. Junio C HamanoMay 30, 2006
  3. Junio C HamanoMay 30, 2006
  4. Alex RiesenMay 30, 2006
  5. Christopher FaylorMay 30, 2006
  6. Alex RiesenMay 30, 2006
  7. Christopher FaylorMay 30, 2006
  8. Ryan AndersonMay 30, 2006
  9. Alex RiesenMay 30, 2006
  10. Ryan AndersonMay 30, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.