From: Brian Gernhardt Date: Wed, 27 Jun 2007 01:29:45 GMT Subject: Re: Failure in t5516, tests 15 and 16 Message-ID: In-Reply-To: <4FAE3A62-A0D1-4C88-8413-88F1D75A2730@silverinsanity.com> On Jun 22, 2007, at 10:50 AM, Brian Gernhardt wrote: > Tests 15 and 16 in script "t5516-fetch-push.sh" fails with "notice: > HEAD points to an unborn branch (master)". Is this just bad tests > or an actual failure? This is with current master > (45fd8bd32dd68ce6b14a406d0abbd6f56490131c) on OS X. Okay, I just did used the wonderful "git bisect run" to find out where this error started happening. The answer appears to be in the first commit the tests appeared in: 1ed10b886bc69c129c06772ee4310c00e001657f I dislike that immensely. Can anyone help me figure out why the test fails? There is no error message printed. I thought the "HEAD points to an unborn branch" was the error, but that doesn't seem to be it. Again, the test results are below. ~~ Brian ----- 8< ----- * expecting success: mk_test && if git show-ref --verify -q refs/tags/frotz then git tag -d frotz fi && git branch -f frotz master && git push testrepo frotz && check_push_result $the_commit heads/frotz && test "$( cd testrepo && git show-ref | wc -l )" = 1 Initialized empty Git repository in .git/ notice: HEAD points to an unborn branch (master) notice: No default references Deleted tag frotz. updating 'refs/heads/frotz' from 0000000000000000000000000000000000000000 to 9ad36e1e54b2130a20d55abb4f0f3ca8494ead3f Generating pack... Done counting 5 objects. Deltifying 5 objects... 100% (5/5) done Writing 5 objects... 100% (5/5) done Total 5 (delta 0), reused 0 (delta 0) Unpacking 5 objects... 100% (5/5) done refs/heads/frotz: 0000000000000000000000000000000000000000 -> 9ad36e1e54b2130a20d55abb4f0f3ca8494ead3f notice: HEAD points to an unborn branch (master) * FAIL 15: push with colon-less refspec (3) mk_test && if git show-ref --verify -q refs/tags/frotz then git tag -d frotz fi && git branch -f frotz master && git push testrepo frotz && check_push_result $the_commit heads/frotz && test "$( cd testrepo && git show-ref | wc -l )" = 1 * expecting success: mk_test && if git show-ref --verify -q refs/heads/frotz then git branch -D frotz fi && git tag -f frotz && git push testrepo frotz && check_push_result $the_commit tags/frotz && test "$( cd testrepo && git show-ref | wc -l )" = 1 Initialized empty Git repository in .git/ notice: HEAD points to an unborn branch (master) notice: No default references Deleted branch frotz. updating 'refs/tags/frotz' from 0000000000000000000000000000000000000000 to 9ad36e1e54b2130a20d55abb4f0f3ca8494ead3f Generating pack... Done counting 5 objects. Deltifying 5 objects... 100% (5/5) done Writing 5 objects... 100% (5/5) done Total 5 (delta 0), reused 0 (delta 0) Unpacking 5 objects... 100% (5/5) done refs/tags/frotz: 0000000000000000000000000000000000000000 -> 9ad36e1e54b2130a20d55abb4f0f3ca8494ead3f notice: HEAD points to an unborn branch (master) * FAIL 16: push with colon-less refspec (4) mk_test && if git show-ref --verify -q refs/heads/frotz then git branch -D frotz fi && git tag -f frotz && git push testrepo frotz && check_push_result $the_commit tags/frotz && test "$( cd testrepo && git show-ref | wc -l )" = 1 * failed 2 among 16 test(s)