git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix t5516 to create test repo without hooks

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jul 4, 2007, 13:11 UTC
Message-ID
<81b0412b0707040611q43054ac1uc0ba8d753dea3f95@mail.gmail.com>

Otherwise the hooks will be executed on cygwin and the test will fail because of the contributed hooks.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 t/t5516-fetch-push.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Before someone tries to say something about Cygwin supporting permissions on NTFS and not on FAT: it is NTFS.

The relevant output was:
* expecting success:
        mk_test heads/frotz tags/frotz &&
        if git push testrepo master:frotz
        then
                echo "Oops, should have failed"
                false
        else
                check_push_result $the_first_commit heads/frotz tags/frotz
        fi
Initialized empty Git repository in .git/
updating 'refs/heads/frotz' using 'b9c09d6cc74d3857142fb7c082dca65b88254c6d'
  from 0000000000000000000000000000000000000000
  to   b9c09d6cc74d3857142fb7c082dca65b88254c6d
Generating pack...
Done counting 3 objects.
Deltifying 3 objects...
 100% (3/3) done
Writing 3 objects...
 100% (3/3) done
Total 3 (delta 0), reused 0 (delta 0)
Unpacking 3 objects...
 100% (3/3) done
refs/heads/frotz: 0000000000000000000000000000000000000000 ->
b9c09d6cc74d3857142fb7c082dca65b88254c6d
updating 'refs/tags/frotz' using 'b9c09d6cc74d3857142fb7c082dca65b88254c6d'
  from 0000000000000000000000000000000000000000
  to   b9c09d6cc74d3857142fb7c082dca65b88254c6d
Generating pack...
Done counting 0 objects.
Writing 0 objects...
Total 0 (delta 0), reused 0 (delta 0)
Unpacking 0 objects...
*** The un-annotated tag, frotz, is not allowed in this repository
*** Use 'git tag [ -a | -s ]' for tags you want to propagate.
error: hooks/update exited with error code 1
error: hook declined to update refs/tags/frotz
ng refs/tags/frotz hook declined
error: failed to push to 'testrepo'
Oops, push refs/tags/frotz failure
* FAIL 12: push with ambiguity (2)
                mk_test heads/frotz tags/frotz &&
                if git push testrepo master:frotz
                then
                        echo "Oops, should have failed"
                        false
                else
                        check_push_result $the_first_commit
heads/frotz tags/frotz
From bf9370303bc6752ea2e5f815d207aca151d360d4 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Wed, 4 Jul 2007 14:06:04 +0200
Subject: [PATCH] Fix t5516 to create test repo without hooks

Otherwise the hooks will be executed on cygwin and the test will fail because of the contributed hooks.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 t/t5516-fetch-push.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index c0fa2ba..ca46aaf 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -11,7 +11,8 @@ mk_empty () {
 	mkdir testrepo &&
 	(
 		cd testrepo &&
-		git init
+		git init &&
+		mv .git/hooks .git/hooks-disabled
 	)
 }
 
-- 
1.5.3.rc0.759.g6c112
Message 1 of 1 in “Fix t5516 to create test repo without hooks”
  1. Fix t5516 to create test repo without hooksAlex Riesen, Jul 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.