Bug 1515105 - Turn off git commit.gpgSign when making temporary commits for try pushes. r=ahal
authorL. David Baron <dbaron@dbaron.org>
Tue, 25 Jun 2019 17:21:47 +0000
changeset 542912 b1c8bd117233e382d1eb0fb46c80ea467ede4fb3
parent 542911 e8310aa09588f45d285e4ee12af10fb4c52d566f
child 542913 f0b36a9e6be0076368bff7cfe6af2318ea6d2b13
push id2131
push userffxbld-merge
push dateMon, 26 Aug 2019 18:30:20 +0000
treeherdermozilla-release@b19ffb3ca153 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersahal
bugs1515105
milestone69.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1515105 - Turn off git commit.gpgSign when making temporary commits for try pushes. r=ahal Differential Revision: https://phabricator.services.mozilla.com/D35726
python/mozversioncontrol/mozversioncontrol/__init__.py
--- a/python/mozversioncontrol/mozversioncontrol/__init__.py
+++ b/python/mozversioncontrol/mozversioncontrol/__init__.py
@@ -471,17 +471,17 @@ class GitRepository(Repository):
             args.append('--ignored')
 
         return not len(self._run(*args).strip())
 
     def push_to_try(self, message):
         if not self.has_git_cinnabar:
             raise MissingVCSExtension('cinnabar')
 
-        self._run('commit', '--allow-empty', '-m', message)
+        self._run('-c', 'commit.gpgSign=false', 'commit', '--allow-empty', '-m', message)
         try:
             subprocess.check_call((self._tool,
                                    '-c',
                                    'remote.try.url=hg::ssh://hg.mozilla.org/try',
                                    'push',
                                    'try',
                                    '+HEAD:refs/heads/branches/default/tip'), cwd=self.path)
         finally: