git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Some Commit Messages Scare git-rev-list
@ 2006-04-12 13:11 Darrin Thompson
  2006-04-12 17:23 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Darrin Thompson @ 2006-04-12 13:11 UTC (permalink / raw)
  To: git

This scripts exhibits some odd behavior. Apparently git-rev-list
mishandles commit messages which do not end in a newline. This as best I
can tell this is a problem introduced since 1.1.5.

Here is a script to reproduce the problem:

rm -rf git-test
mkdir git-test
cd git-test
git-init-db
echo hello > hello
git-add hello

# send scary message to git-commit -F -
echo -n "test commit" | git-commit -F - -a
echo world > world
git-add world
git-update-index --add world
treeid=$(git-write-tree)

# send scary message directly to git-commit-tree
commitid=$(echo -n "another-test" | git-commit-tree $treeid -p HEAD)
git-update-ref HEAD $commitid

# see the wreckage
git-rev-list --pretty HEAD

Running gitk will also show the problem.

--
Darrin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-12 20:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-12 13:11 Some Commit Messages Scare git-rev-list Darrin Thompson
2006-04-12 17:23 ` Linus Torvalds
2006-04-12 18:46   ` Junio C Hamano
2006-04-12 19:39     ` Junio C Hamano
2006-04-12 20:04       ` Linus Torvalds

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).