Skip to contentSkip to conversation

fatal: Not a git repository

DISCUSSION Douglas Royds 6 participants 7 messages Mar 2, 2009 – Mar 3, 2009

lore
Share & tools
lore
#0 lore raw

Anyone else getting this?

NOTE: Handling BitBake files: / (6587/6587) [100 %]
NOTE: Parsing finished. 6302 cached, 0 parsed, 285 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: build 200903021645: started
fatal: Not a git repository <----------------------

OE Build Configuration:
BB_VERSION = "1.8.12"
...

The same complaint seems to crop up at various points during a build, as well.

Suggestions?
Douglas.

=======================================================================
This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email.
Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.
=======================================================================

#1 lore raw

Am Mon, 02 Mar 2009 16:55:54 +1300 schrieb Douglas Royds:

Quoted 11 lines

Anyone else getting this?

    NOTE: Handling BitBake files: / (6587/6587) [100 %] NOTE: Parsing
    finished. 6302 cached, 0 parsed, 285 skipped, 0 masked. NOTE: Cache
    is clean, not saving.
    NOTE: build 200903021645: started
    fatal: Not a git repository <----------------------

    OE Build Configuration:
    BB_VERSION        = "1.8.12"
    ...

Yes, it happens on every build. I guess bitbake is testing the current directory via git and would include the current head in the build number.

Quoted 4 lines

The same complaint seems to crop up at various points during a build, as well.

Suggestions?

Just ignore. Besides called "fatal" it isn't fatal at all.

Bye,
Vitus

#2 lore raw
Quoted 18 lines · Vitus Jensen

Am Mon, 02 Mar 2009 16:55:54 +1300 schrieb Douglas Royds:

Quoted 11 lines

Anyone else getting this?

    NOTE: Handling BitBake files: / (6587/6587) [100 %] NOTE: Parsing
    finished. 6302 cached, 0 parsed, 285 skipped, 0 masked. NOTE: Cache
    is clean, not saving.
    NOTE: build 200903021645: started
    fatal: Not a git repository <----------------------

    OE Build Configuration:
    BB_VERSION        = "1.8.12"
    ...

Yes, it happens on every build. I guess bitbake is testing the current directory via git and would include the current head in the build number.

Quoted 6 lines
Quoted 4 lines

The same complaint seems to crop up at various points during a build, as well.

Suggestions?

Just ignore. Besides called "fatal" it isn't fatal at all.

Well, to git it's fatal :) Someone should dig to where the call is and redirect stderr somewhere, I suspect..

Signature · 1 line
Tom Rini
#3 lore raw
Quoted 22 lines · Tom Rini
Quoted 20 lines · Vitus Jensen

Am Mon, 02 Mar 2009 16:55:54 +1300 schrieb Douglas Royds:

Quoted 12 lines

Anyone else getting this?

    NOTE: Handling BitBake files: / (6587/6587) [100 %] NOTE: Parsing
    finished. 6302 cached, 0 parsed, 285 skipped, 0 masked. NOTE: Cache
    is clean, not saving.
    NOTE: build 200903021645: started
    fatal: Not a git repository <----------------------

    OE Build Configuration:
    BB_VERSION        = "1.8.12"
    ...

Yes, it happens on every build. I guess bitbake is testing the current directory via git and would include the current head in the build number.

Quoted 3 lines

The same complaint seems to crop up at various points during a build, as well.

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

Suggestions?

Just ignore. Besides called "fatal" it isn't fatal at all.

Well, to git it's fatal :) Someone should dig to where the call is and redirect stderr somewhere, I suspect..

This silences it, though I'm not sure that it's the right solution:

classes/base.bbclass +0 -0
index 18afc1a..21b08a5 100644
@@ -807,7 +807,7 @@ def base_get_metadata_svn_revision(d):
 

def base_get_metadata_git_branch(d):
import os
- branch = os.popen('cd %s; git branch | grep "^* " | tr -d "* "' % base_get_scmbasepath(d)).read()
+ branch = os.popen('cd %s; git branch 2>&1 | grep "^* " | tr -d "* "' % base_get_scmbasepath(d)).read()

       if len(branch) != 0:
               return branch

=======================================================================
This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email.
Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.
=======================================================================

#4 lore raw
Quoted 54 lines · Douglas Royds
Quoted 28 lines · Tom Rini
Quoted 25 lines · Vitus Jensen

Am Mon, 02 Mar 2009 16:55:54 +1300 schrieb Douglas Royds:

Quoted 9 lines

Anyone else getting this?

   NOTE: Handling BitBake files: / (6587/6587) [100 %] NOTE: Parsing finished. 6302 cached, 0 parsed, 285 skipped, 0 masked. NOTE: Cache is clean, not saving.
   NOTE: build 200903021645: started
   fatal: Not a git repository <----------------------

Quoted 4 lines

   OE Build Configuration:
   BB_VERSION        = "1.8.12"
   ...

Yes, it happens on every build.  I guess bitbake is testing the current directory via git and would include the current head in the build number.

Quoted 4 lines

The same complaint seems to crop up at various points during a build, as well.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Suggestions?

Just ignore.  Besides called "fatal" it isn't fatal at all.

Well, to git it's fatal :)  Someone should dig to where the call is and redirect stderr somewhere, I suspect..

This silences it, though I'm not sure that it's the right solution:

classes/base.bbclass +0 -0
index 18afc1a..21b08a5 100644
@@ -807,7 +807,7 @@ def base_get_metadata_svn_revision(d):
 

def base_get_metadata_git_branch(d):
      import os
-       branch = os.popen('cd %s; git branch | grep "^* " | tr -d "* "' % base_get_scmbasepath(d)).read()
+       branch = os.popen('cd %s; git branch 2>&1 | grep "^* " | tr -d "* "' % base_get_scmbasepath(d)).read()

Quoted 2 lines

      if len(branch) != 0:
              return branch

Maybe it should test whether os.path.join(base_get_scmbasepath(d),'.git') exists before calling out to git?

regards
Philipp

#5 lore raw
In reply to Douglas Royds
Quoted 8 lines · Douglas Royds

Anyone else getting this?

NOTE: Handling BitBake files: / (6587/6587) [100 %]
NOTE: Parsing finished. 6302 cached, 0 parsed, 285 skipped, 0 masked.
NOTE: Cache is clean, not saving.
NOTE: build 200903021645: started
fatal: Not a git repository <----------------------

Quoted 6 lines
   OE Build Configuration:
   BB_VERSION        = "1.8.12"
   ...

The same complaint seems to crop up at various points during a build, as well.

Yes, I see that as well. Of course, since I -- at the time -- was building from a snapshot and not the original git repo, and the build results seemed quite normal, I gave it no further thought.

Quoted 11 lines

=======================================================================
This email, including any attachments, is only for the intended addressee. It is subject to copyright, is confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email.
Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.
=======================================================================

I guess I'm not sure that I am the intended addressee. Can you tell me if you did, in fact, intend to send the original email to me, in the legal sense of the definition of "intended addressee"?

In any case, please inform your legal department that I do not accept apologies from lawyers, and that this email constitutes my notification of that to your lawyers, that I have deleted all copies -- at least those copies that _I_ possess; the email notice is rather vague as to whether I am required to track down all copies that might exist in the world today -- and I also shall perform no other act on the email.

- Mike (mwester)

P.S. Neither can I warrant that my response to this email has not been altered or corrupted during transmission. And I'll go one better than your lawyers, and note that you'll never know if my original email was full of typos -- and that it was actually *corrected* during transmission. Poor lawyers... that sort of disclaimer rather makes the entire footnote they added there completely ridiculous and pointless, doesn't it??!

#6 lore raw

Hello!

Quoted 13 lines
Quoted 12 lines · Douglas Royds

Anyone else getting this?

NOTE: Handling BitBake files: / (6587/6587) [100 %]
NOTE: Parsing finished. 6302 cached, 0 parsed, 285 skipped, 0
masked. NOTE: Cache is clean, not saving.
NOTE: build 200903021645: started
fatal: Not a git repository <----------------------

   OE Build Configuration:
   BB_VERSION        = "1.8.12"
   ...
Quoted 6 lines
Quoted 2 lines

The same complaint seems to crop up at various points during a build, as well.

Yes, I see that as well. Of course, since I -- at the time -- was building from a snapshot and not the original git repo, and the build results seemed quite normal, I gave it no further thought.

I have this too.

I think we should add some parameter to conf-files which allows to point where is git repository located.

This is useful when publishing build stats to tinderbox.

Signature · 1 line
Yuri Bushmelev