Hi, On Wed, 17 Dec 2008, Miklos Vajna wrote: > Here is a copy of the udev repo I cloned some time ago: > > http://frugalware.org/~vmiklos/files/udev.tar.bz2 > > I did not modify it, so I thought a simple 'git pull' can update it. > > $ git pull > Updating 661a0be..b6626d0 > error: Untracked working tree file 'test/sys/class/misc/rtc/dev' would > be removed by merge. I just spent three hours narrowing it down to this test case (but now I have to catch 3 hours of sleep): -- snipsnap -- [PATCH] Miklos' testcase Even if we would not handle symlink/directory conflicts gracefully (which we do, though), those conflicts should not affect unchanged files at all, especially not claiming that they are untracked. Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx> --- t/t1008-read-tree-sd.sh | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) create mode 100644 t/t1008-read-tree-sd.sh diff --git a/t/t1008-read-tree-sd.sh b/t/t1008-read-tree-sd.sh new file mode 100644 index 0000000..4d74430 --- /dev/null +++ b/t/t1008-read-tree-sd.sh @@ -0,0 +1,39 @@ +#!/bin/sh +# +# Copyright (c) 2008 Johannes E. Schindelin +# + +test_description='symlink/directory conflict' + +. ./test-lib.sh + +test_expect_success 'setup' ' + + mkdir -p alpha/beta/gamma && + ln -s delta alpha/beta/gamma/epsilon && + mkdir -p alpha/beta/theta && + ln -s zeta alpha/beta/theta/eta && + mkdir -p iota/kappa/lambda/ && + : > iota/kappa/lambda/mu && + git add . && + test_tick && + git commit -m initial && + + git rm -r alpha/beta/gamma && + ln -s nu alpha/beta/gamma && + git rm -r alpha/beta/theta && + ln -s xi alpha/beta/theta && + git add . && + test_tick && + git commit -m 2nd + +' + +test_expect_failure 'read-tree -u -m handles symlinks gracefully' ' + + git checkout -b side HEAD^ && + git read-tree -u -m master + +' + +test_done -- 1.6.0.4.1189.g8876f -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html