summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-04-09 10:15:41 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-04-09 10:15:41 +0100
commit60b4cb12c1bcb2ce09aec1cee7b640b12d74effc (patch)
treed3de6f70ebd89a86b00d011bf85288e4eacc1243
parent17d4c4d64ca6947da6837fb119c94253d9e32b58 (diff)
cerbero/git: set up a local user config for commits in one more place
git-for-windows will error out with 'Tell me who you are' otherwise, if no global user config exists.
-rw-r--r--cerbero/utils/git.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cerbero/utils/git.py b/cerbero/utils/git.py
index ea2cac8f..3bebdc03 100644
--- a/cerbero/utils/git.py
+++ b/cerbero/utils/git.py
@@ -192,6 +192,10 @@ def local_checkout(git_dir, local_git_dir, commit):
shell.call('%s reset --hard %s' % (GIT, commit), local_git_dir)
shell.call('%s clone %s -s -b %s .' % (GIT, local_git_dir, branch_name),
git_dir)
+ # Set the user configuration for this repository so that Cerbero never warns
+ # about it or errors out (it errors out with git-for-windows)
+ shell.call('%s config user.email "cerbero@gstreamer.freedesktop.org"' % GIT, git_dir)
+ shell.call('%s config user.name "Cerbero Build System"' % GIT, git_dir)
submodules_update(git_dir, local_git_dir)
def add_remote(git_dir, name, url):