{"thread":{"id":"2516","subject":"[PATCH]: cogito testsuite: use git-symbolic-ref","startedAt":"2005-11-15T01:13:00Z","lastAt":"2005-11-15T01:13:00Z","messageCount":1,"participants":["Pavel Roskin"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"11862","messageId":"1132017180.24084.39.camel@dv","threadId":"2516","inReplyTo":null,"subject":"[PATCH]: cogito testsuite: use git-symbolic-ref","fromName":"Pavel Roskin","fromEmail":"proski@gnu.org","sentAt":"2005-11-15T01:13:00Z","receivedAt":"2005-11-15T01:13:00Z","isPatch":true,"sender":{"key":"proski@gnu.org","avatar":null},"body":"cogito testsuite fails if git is compiled with USE_SYMLINK_HEAD=0.\nTo fix it, use git-symbolic-ref instead of readlink.\n\nSigned-off-by: Pavel Roskin <proski@gnu.org>\n\ndiff --git a/t/t9300-seek.sh b/t/t9300-seek.sh\nindex d3fed11..a6f3a65 100755\n--- a/t/t9300-seek.sh\n+++ b/t/t9300-seek.sh\n@@ -30,7 +30,7 @@ test_expect_success 'seeking to the firs\n test_expect_success 'we should have .git/head-name == master' \\\n \t\"[ $(cat .git/head-name) = master ]\"\n test_expect_success 'current branch should be cg-seek-point' \\\n-\t\"[ $(basename $(readlink .git/HEAD)) = cg-seek-point ]\"\n+\t\"[ $(basename $(git-symbolic-ref HEAD)) = cg-seek-point ]\"\n test_expect_success 'current commit should be commit1' \\\n \t\"[ $(cg-object-id -c) = $commit1 ]\"\n \n@@ -47,14 +47,16 @@ test_expect_success 'identical should be\n test_expect_success 'seeking to the second commit' \\\n \t\"cg-seek $commit2\"\n test_expect_success 'we should not unseeked properly' \\\n-\t\"([ -e .git/head-name ] && [ $(basename $(readlink .git/HEAD)) = cg-seek-point ])\"\n+\t\"([ -e .git/head-name ] &&\n+\t [ $(basename $(git-symbolic-ref HEAD)) = cg-seek-point ])\"\n test_expect_success 'current commit should be commit2' \\\n \t\"[ $(cg-object-id -c) = $commit2 ]\"\n \n test_expect_success 'seeking to the last (well, still second) commit' \\\n \t\"cg-seek master\"\n test_expect_success 'we should be unseeked properly' \\\n-\t\"([ ! -e .git/head-name ] && [ $(basename $(readlink .git/HEAD)) = master ])\"\n+\t\"([ ! -e .git/head-name ] &&\n+\t [ $(basename $(git-symbolic-ref HEAD)) = master ])\"\n test_expect_success 'current commit should be commit2' \\\n \t\"[ $(cg-object-id -c) = $commit2 ]\"\n \n@@ -88,7 +90,8 @@ test_expect_success 'identical should be\n test_expect_success 'unseeking' \\\n \t\"cg-seek\"\n test_expect_success 'we should be unseeked properly' \\\n-\t\"([ ! -e .git/head-name ] && [ $(basename $(readlink .git/HEAD)) = master ])\"\n+\t\"([ ! -e .git/head-name ] &&\n+\t [ $(basename $(git-symbolic-ref HEAD)) = master ])\"\n test_expect_success 'current commit should be commit2' \\\n \t\"[ $(cg-object-id -c) = $commit2 ]\"\n \n\n\n-- \nRegards,\nPavel Roskin\n"}]}