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-12 12:40:39 +0100
commit645cce1205060f70c69589dc222e737402e24f36 (patch)
tree3e92a13711d5d3ded6d871d8e6a3299cf0af0384
parentd33053f10961b73b3ad34bc4f364179c9bd4ba8f (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):