diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 11:48:12 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-04 11:48:12 +0000 |
commit | 2a0c668a9ba07590f89122ee3a17ea2d66eafc93 (patch) | |
tree | 1fbaf7d8d768538a60e8c8c78738d36c35526da4 /meta/classes | |
parent | 51be1fad9c2889755787f94f07174f854d23f8db (diff) | |
download | openembedded-core-2a0c668a9ba07590f89122ee3a17ea2d66eafc93.tar.gz openembedded-core-2a0c668a9ba07590f89122ee3a17ea2d66eafc93.tar.bz2 openembedded-core-2a0c668a9ba07590f89122ee3a17ea2d66eafc93.tar.xz openembedded-core-2a0c668a9ba07590f89122ee3a17ea2d66eafc93.zip |
base.bbclass: Create ~/.gitconfig if it doesn't already exist
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 9cf3863ff..d72267588 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -748,7 +748,9 @@ def generate_git_config(e): ignore_host = data.getVar('GIT_PROXY_IGNORE_%s' % ignore_count, e.data, True) f.write(proxy_command) f.close - if + if not os.path.exists(os.path.expanduser("~/.gitconfig")): + import shutil + shutil.copyfile(gitconfig_path, os.path.expanduser("~/.gitconfig")) METADATA_REVISION ?= "${@base_get_metadata_monotone_revision(d)}" |