From: "Alex Riesen" <raa.lkml@gmail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Cc: "Junio C Hamano" <gitster@pobox.com>
Subject: [PATCH] Fix t5516 to create test repo without hooks
Date: Wed, 4 Jul 2007 15:11:01 +0200 [thread overview]
Message-ID: <81b0412b0707040611q43054ac1uc0ba8d753dea3f95@mail.gmail.com> (raw)
[-- 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
reply other threads:[~2007-07-04 13:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=81b0412b0707040611q43054ac1uc0ba8d753dea3f95@mail.gmail.com \
--to=raa.lkml@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).