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

Problems importing git-cur into git

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
Feb 26, 2007, 14:11 UTC
Message-ID
<20070226141125.GA12506@informatik.uni-freiburg.de>
Hello,

I tried to apply Russell King's git-cur[1] to my linux-2.6 repo. The problem I was faced there is that git-am isn't able to parse the date in the "From " lines.

arm.mbox uses e.g.
	From rmk Sun Feb 25 22:32:59 GMT 2007

while git-am (or more exactly git-mailsplit) expects to find the year directly after the time.

The output of date specifies the timezone between time and year, too.

The next problem is that once more that my 'ö' is not correctly taken in the commit. I didn't debug that yet, but probably inserting a Content-Type header helps here?

I'll debug that further, but at the moment I don't have the time. Just send out my current status, maybe someone else wants to look after that issue.

Attached is the current script to reproduce it.

Best regards Uwe

[1] ftp://ftp.arm.linux.org.uk/pub/armlinux/kernel/git-cur/arm.mbox
-- 
Uwe Kleine-König

http://www.google.com/search?q=gigabyte+in+bit


#! /bin/sh

MBOX="ftp://ftp.arm.linux.org.uk/pub/armlinux/kernel/git-cur/arm.mbox";
DIFF="ftp://ftp.arm.linux.org.uk/pub/armlinux/kernel/git-cur/arm.diff";

LINUX_GIT="${HOME}/gsrc/linux-2.6";

tempfile=$(mktemp)
trap 'rm -f "${tempfile}"' INT QUIT TERM EXIT 

# Fix Date format for git-mailsplit that assumes that the year directly follows
# the time ...
wget -O - "${MBOX}" | sed "s/^\\(From .*:[0-9][0-9]\) GMT/\\1/" > "${tempfile}"

cd "${LINUX_GIT}";
git am "${tempfile}";

echo "${tempfile}";
Message 1 of 1 in “Problems importing git-cur into git”
  1. Uwe Kleine-KönigFeb 26, 2007

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.