git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix t5516 to create test repo without hooks
@ 2007-07-04 13:11 Alex Riesen
  0 siblings, 0 replies; only message in thread
From: Alex Riesen @ 2007-07-04 13:11 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Junio C Hamano

[-- Attachment #1: Type: text/plain, Size: 2159 bytes --]

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

[-- Attachment #2: 0001-Fix-t5516-to-create-test-repo-without-hooks.txt --]
[-- Type: text/plain, Size: 769 bytes --]

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-04 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-04 13:11 [PATCH] Fix t5516 to create test repo without hooks Alex Riesen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).