On 3 October 2016 at 01:43, Stephano Cetola <[email protected]
> wrote:

> +# If the user hasn't set up their name/email, set some defaults
> +check_git_config() {
> +       if [ -z "$1" ]; then
> +               name="OE"
> +       else
> +               name="$1"
> +       fi
> +       if ! git config user.email > /dev/null ; then
> +               git config --local user.email "${name}@${DISTRO}"
> +       fi
> +       if ! git config user.name > /dev/null ; then
> +               git config --local user.name "${name}"
> +       fi
> +}
>

Instead of embedding this into sanity.bbclass, could it just go into
meta/lib/oe/ somewhere?

Ross
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to