Re: [PATCH 1/8] remote-bzr: fix export of utf-8 authors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 28, 2013 at 3:23 PM, Felipe Contreras
<felipe.contreras@xxxxxxxxx> wrote:
> Reported-by: Joakim Verona <joakim@xxxxxxxxx>
> Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
> ---
>  contrib/remote-helpers/git-remote-bzr |  1 +
>  contrib/remote-helpers/test-bzr.sh    | 30 ++++++++++++++++++++++++++++++
>  2 files changed, 31 insertions(+)
>
> diff --git a/contrib/remote-helpers/test-bzr.sh b/contrib/remote-helpers/test-bzr.sh
> index dce281f..ef8992a 100755
> --- a/contrib/remote-helpers/test-bzr.sh
> +++ b/contrib/remote-helpers/test-bzr.sh
> @@ -358,4 +358,34 @@ test_expect_success 'strip' '
>         test_cmp expected actual
>  '
>
> +test_expect_success 'export utf-8 authors' '
> +       test_when_finished "rm -rf bzrrepo gitrepo && LC_ALL=C && unset GIT_COMMITTER_NAME" &&
> +
> +       LC_ALL=en_US.UTF-8
> +       export LC_ALL
> +
> +       GIT_COMMITTER_NAME="Grégoire"
> +       export GIT_COMMITTER_NAME
> +
> +       bzr init bzrrepo &&
> +
> +       (
> +       git init gitrepo &&
> +       cd gitrepo &&
> +       echo greg >> content &&
> +       git add content &&
> +       git commit -m one

Broken &&-chain.

> +       git remote add bzr "bzr::../bzrrepo" &&
> +       git push bzr
> +       ) &&
> +
> +       (
> +       cd bzrrepo &&
> +       bzr log | grep "^committer: " > ../actual
> +       ) &&
> +
> +       echo "committer: Grégoire <committer@xxxxxxxxxxx>" > expected &&
> +       test_cmp expected actual
> +'
> +
>  test_done
> --
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]