{"thread":{"id":"8860","subject":"[PATCH] Fix t5516 to create test repo without hooks","startedAt":"2007-07-04T13:11:01Z","lastAt":"2007-07-04T13:11:01Z","messageCount":1,"participants":["Alex Riesen"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46479","messageId":"81b0412b0707040611q43054ac1uc0ba8d753dea3f95@mail.gmail.com","threadId":"8860","inReplyTo":null,"subject":"[PATCH] Fix t5516 to create test repo without hooks","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-07-04T13:11:01Z","receivedAt":"2007-07-04T13:11:01Z","isPatch":true,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Otherwise the hooks will be executed on cygwin and the test will fail\nbecause of the contributed hooks.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n t/t5516-fetch-push.sh |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\nBefore someone tries to say something about Cygwin supporting\npermissions on NTFS and not on FAT: it is NTFS.\n\nThe relevant output was:\n\n* expecting success:\n\n        mk_test heads/frotz tags/frotz &&\n        if git push testrepo master:frotz\n        then\n                echo \"Oops, should have failed\"\n                false\n        else\n                check_push_result $the_first_commit heads/frotz tags/frotz\n        fi\n\n\nInitialized empty Git repository in .git/\nupdating 'refs/heads/frotz' using 'b9c09d6cc74d3857142fb7c082dca65b88254c6d'\n  from 0000000000000000000000000000000000000000\n  to   b9c09d6cc74d3857142fb7c082dca65b88254c6d\nGenerating pack...\nDone counting 3 objects.\nDeltifying 3 objects...\n 100% (3/3) done\nWriting 3 objects...\n 100% (3/3) done\nTotal 3 (delta 0), reused 0 (delta 0)\nUnpacking 3 objects...\n 100% (3/3) done\nrefs/heads/frotz: 0000000000000000000000000000000000000000 ->\nb9c09d6cc74d3857142fb7c082dca65b88254c6d\nupdating 'refs/tags/frotz' using 'b9c09d6cc74d3857142fb7c082dca65b88254c6d'\n  from 0000000000000000000000000000000000000000\n  to   b9c09d6cc74d3857142fb7c082dca65b88254c6d\nGenerating pack...\nDone counting 0 objects.\nWriting 0 objects...\nTotal 0 (delta 0), reused 0 (delta 0)\nUnpacking 0 objects...\n*** The un-annotated tag, frotz, is not allowed in this repository\n*** Use 'git tag [ -a | -s ]' for tags you want to propagate.\nerror: hooks/update exited with error code 1\nerror: hook declined to update refs/tags/frotz\nng refs/tags/frotz hook declined\nerror: failed to push to 'testrepo'\nOops, push refs/tags/frotz failure\n* FAIL 12: push with ambiguity (2)\n\n\n                mk_test heads/frotz tags/frotz &&\n                if git push testrepo master:frotz\n                then\n                        echo \"Oops, should have failed\"\n                        false\n                else\n                        check_push_result $the_first_commit\nheads/frotz tags/frotz\n\n\nFrom bf9370303bc6752ea2e5f815d207aca151d360d4 Mon Sep 17 00:00:00 2001\nFrom: Alex Riesen <raa.lkml@gmail.com>\nDate: Wed, 4 Jul 2007 14:06:04 +0200\nSubject: [PATCH] Fix t5516 to create test repo without hooks\n\nOtherwise the hooks will be executed on cygwin and the test will fail\nbecause of the contributed hooks.\n\nSigned-off-by: Alex Riesen <raa.lkml@gmail.com>\n---\n t/t5516-fetch-push.sh |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh\nindex c0fa2ba..ca46aaf 100755\n--- a/t/t5516-fetch-push.sh\n+++ b/t/t5516-fetch-push.sh\n@@ -11,7 +11,8 @@ mk_empty () {\n \tmkdir testrepo &&\n \t(\n \t\tcd testrepo &&\n-\t\tgit init\n+\t\tgit init &&\n+\t\tmv .git/hooks .git/hooks-disabled\n \t)\n }\n \n-- \n1.5.3.rc0.759.g6c112\n\n"}]}