[OE-core] [PATCH V2] sanity: add function to check for git config user

Burton, Ross ross.burton at intel.com
Mon Oct 3 15:31:00 UTC 2016


On 3 October 2016 at 01:43, Stephano Cetola <stephano.cetola at linux.intel.com
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20161003/25ca42a7/attachment-0002.html>


More information about the Openembedded-core mailing list