<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 3 October 2016 at 01:43, Stephano Cetola <span dir="ltr"><<a href="mailto:stephano.cetola@linux.intel.com" target="_blank">stephano.cetola@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":sm" class="a3s aXjCH m1578800bbac166c7">+# If the user hasn't set up their name/email, set some defaults<br>
+check_git_config() {<br>
+ if [ -z "$1" ]; then<br>
+ name="OE"<br>
+ else<br>
+ name="$1"<br>
+ fi<br>
+ if ! git config user.email > /dev/null ; then<br>
+ git config --local user.email "${name}@${DISTRO}"<br>
+ fi<br>
+ if ! git config <a href="http://user.name" rel="noreferrer" target="_blank">user.name</a> > /dev/null ; then<br>
+ git config --local <a href="http://user.name" rel="noreferrer" target="_blank">user.name</a> "${name}"<br>
+ fi<br>
+}</div></blockquote></div><br>Instead of embedding this into sanity.bbclass, could it just go into meta/lib/oe/ somewhere?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Ross</div></div>