From: Torsten Paul <Torsten.Paul@gmx.de>
To: Paul Mackerras <paulus@samba.org>
Cc: git@vger.kernel.org
Subject: Re: gitk: Author/Committer name with special characters
Date: Sat, 19 Jul 2008 17:16:04 +0200 [thread overview]
Message-ID: <48820534.7080806@gmx.de> (raw)
In-Reply-To: <18558.35423.933860.915622@cargo.ozlabs.ibm.com>
Paul Mackerras wrote:
> Something like that, I think, but to be sure I'd like to see the
> actual author and committer lines that are causing the problem. Could
> you send me the output of "git cat-file commit" on one of the
> problematic commits?
>
I've created a small script that creates a minimal repo that shows
the problem...
ciao,
Torsten.
#!/bin/bash
#
# Script to generate git commit messages that
# contain windows style user names. This kind of
# names are generated when using git-svn with a
# svn-repo that uses NTLM authentification.
#
EXT="@23e39a30-19ad-a625-8bac-5c9ab2323746"
do_commit () {
F=test.txt
echo "test$1" > "$F"
git add "$F"
M="<$2$EXT>"
GIT_AUTHOR_NAME="$2" \
GIT_AUTHOR_EMAIL="$M" \
GIT_COMMITTER_NAME="$2" \
GIT_COMMITTER_EMAIL="$M" \
git commit -m "commit $1"
}
DIR=`mktemp -d /tmp/gitk-test.XXXXXXXXXX` || exit 1
trap "rm -rf \"$DIR\"" EXIT
cd $DIR || exit 2
git init
do_commit 1 "paul"
do_commit 2 "WIN\paul"
do_commit 3 "WIN\test"
do_commit 4 "WIN\nobody"
do_commit 5 "WIN\paul"
do_commit 6 "paul"
gitk
prev parent reply other threads:[~2008-07-19 15:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 22:24 gitk: Author/Committer name with special characters Torsten Paul
2008-07-16 23:55 ` Paul Mackerras
2008-07-17 7:34 ` Torsten Paul
2008-07-19 15:16 ` Torsten Paul [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48820534.7080806@gmx.de \
--to=torsten.paul@gmx.de \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).