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

Re: gitk: Author/Committer name with special characters

From
TPTorsten Paul <torsten.paul@gmx.de>
Date
Jul 19, 2008, 15:16 UTC
Message-ID
<48820534.7080806@gmx.de>
In-Reply-To
<18558.35423.933860.915622@cargo.ozlabs.ibm.com>
Paul Mackerras wrote:
Show 5 quoted lines
> 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

Previous: Torsten Paul
Message 4 of 4 in “gitk: Author/Committer name with special characters”
  1. Torsten PaulJul 16, 2008
  2. Paul MackerrasJul 16, 2008
  3. Torsten PaulJul 17, 2008
  4. Torsten PaulJul 19, 2008

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.