summaryrefslogtreecommitdiffstats
path: root/meta/classes/utils.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/utils.bbclass')
-rw-r--r--meta/classes/utils.bbclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index 800b56578c..dbb5e4cbbc 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -419,3 +419,13 @@ def all_multilib_tune_list(vars, d):
419 values[v].append(localdata.getVar(v, True)) 419 values[v].append(localdata.getVar(v, True))
420 values['ml'].append(item) 420 values['ml'].append(item)
421 return values 421 return values
422
423# If the user hasn't set up their name/email, set some defaults
424check_git_config() {
425 if ! git config user.email > /dev/null ; then
426 git config --local user.email "${PATCH_GIT_USER_EMAIL}"
427 fi
428 if ! git config user.name > /dev/null ; then
429 git config --local user.name "${PATCH_GIT_USER_NAME}"
430 fi
431}