mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
base.bbclass: Create ~/.gitconfig if it doesn't already exist
This commit is contained in:
@@ -748,7 +748,9 @@ def generate_git_config(e):
|
|||||||
ignore_host = data.getVar('GIT_PROXY_IGNORE_%s' % ignore_count, e.data, True)
|
ignore_host = data.getVar('GIT_PROXY_IGNORE_%s' % ignore_count, e.data, True)
|
||||||
f.write(proxy_command)
|
f.write(proxy_command)
|
||||||
f.close
|
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)}"
|
METADATA_REVISION ?= "${@base_get_metadata_monotone_revision(d)}"
|
||||||
|
|||||||
Reference in New Issue
Block a user