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

Re: Failure in t5516, tests 15 and 16

From
Brian Gernhardt <benji@silverinsanity.com>
Date
Jun 27, 2007, 01:29 UTC
Message-ID
<CFDE3792-403B-4582-B7FB-BC142B79AE63@silverinsanity.com>
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)
Previous: Brian GernhardtNext: Junio C Hamano
Message 2 of 4 in “Failure in t5516, tests 15 and 16”
  1. Brian GernhardtJun 22, 2007
  2. Brian GernhardtJun 27, 2007
  3. Junio C HamanoJun 27, 2007
  4. Brian GernhardtJun 27, 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.