OSDN Git Service

Merge branch 'kd/mailinfo-quoted-string'
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2016 20:30:38 +0000 (13:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2016 20:30:38 +0000 (13:30 -0700)
An author name, that spelled a backslash-quoted double quote in the
human readable part "My \"double quoted\" name", was not unquoted
correctly while applying a patch from a piece of e-mail.

* kd/mailinfo-quoted-string:
  mailinfo: unescape quoted-pair in header fields
  t5100-mailinfo: replace common path prefix with variable

1  2 
mailinfo.c
t/t5100-mailinfo.sh

diff --cc mailinfo.c
Simple merge
@@@ -7,11 -7,13 +7,13 @@@ test_description='git mailinfo and git 
  
  . ./test-lib.sh
  
+ DATA="$TEST_DIRECTORY/t5100"
  test_expect_success 'split sample box' \
-       'git mailsplit -o. "$TEST_DIRECTORY"/t5100/sample.mbox >last &&
+       'git mailsplit -o. "$DATA/sample.mbox" >last &&
        last=$(cat last) &&
        echo total is $last &&
 -      test $(cat last) = 17'
 +      test $(cat last) = 18'
  
  check_mailinfo () {
        mail=$1 opt=$2