* [WARNING] Please be careful when using "git add" from "next" branch
[not found] ` <7vwtcj4tp6.fsf@assigned-by-dhcp.cox.net>
@ 2006-05-18 8:52 ` Junio C Hamano
2006-05-19 6:28 ` FIXED: " Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Junio C Hamano @ 2006-05-18 8:52 UTC (permalink / raw)
To: git; +Cc: linux-kernel
There is still a small breakage in the built-in "git add" on the
"next" branch that ends up creating nonsense tree objects.
$ mkdir foo
$ date >bar
$ git-add foo/../bar
$ git ls-files
foo/../bar
$ git ls-tree -r -t $(git-write-tree)
040000 tree ef5562cd3a9bf66d41a8d4f42f159e8c694ce7e3 foo
040000 tree 6e1612248e8da43fc5f91592e559da1ad5f9a852 foo/..
100644 blob 53ab446c3f4e42ce9bb728a0ccb283a101be4979 foo/../bar
If you do not do funky things like foo/../bar, I do not think
you have to worry, but scripted use might break. It used to
warn and ignore such bogus input, but now it happily accepts it
and produces bogus index which results in bogus trees.
"git update-index --add" is not affected by this breakage.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-19 6:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.64.0605170927050.10823@g5.osdl.org>
[not found] ` <7vhd3ocvyy.fsf@assigned-by-dhcp.cox.net>
[not found] ` <Pine.LNX.4.64.0605171321020.10823@g5.osdl.org>
[not found] ` <7v64k3698l.fsf@assigned-by-dhcp.cox.net>
[not found] ` <7vwtcj4tp6.fsf@assigned-by-dhcp.cox.net>
2006-05-18 8:52 ` [WARNING] Please be careful when using "git add" from "next" branch Junio C Hamano
2006-05-19 6:28 ` FIXED: " Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®