chiark / gitweb /
git: make explicit that git configs are calling cmd line utilities
authorHans-Christoph Steiner <hans@eds.org>
Mon, 5 Feb 2018 12:23:44 +0000 (13:23 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 12 Feb 2018 11:07:24 +0000 (12:07 +0100)
These are not boolean values, but command line utilities which return a
guaranteed exit status.

fdroidserver/common.py

index 340d296c60f1773dc0eb906380716f79e7c43648..86d1a7d1673efe53c347489da9a7d4b90c04f67d 100644 (file)
@@ -815,7 +815,7 @@ class vcs_git(vcs):
         #
         # supported in git >= 2.3
         git_config = [
-            '-c', 'core.sshCommand=false',
+            '-c', 'core.sshCommand=/bin/false',
             '-c', 'url.https://.insteadOf=ssh://',
         ]
         for domain in ('bitbucket.org', 'github.com', 'gitlab.com'):
@@ -827,7 +827,7 @@ class vcs_git(vcs):
             git_config.append('url.https://u:p@' + domain + '.insteadOf=https://' + domain)
         envs.update({
             'GIT_TERMINAL_PROMPT': '0',
-            'GIT_SSH': 'false',  # for git < 2.3
+            'GIT_SSH': '/bin/false',  # for git < 2.3
         })
         return FDroidPopen(['git', ] + git_config + args,
                            envs=envs, cwd=cwd, output=output)
@@ -965,8 +965,8 @@ class vcs_gitsvn(vcs):
         config = ['-c', 'core.sshCommand=false']
         envs.update({
             'GIT_TERMINAL_PROMPT': '0',
-            'GIT_SSH': 'false',  # for git < 2.3
-            'SVN_SSH': 'false',
+            'GIT_SSH': '/bin/false',  # for git < 2.3
+            'SVN_SSH': '/bin/false',
         })
         return FDroidPopen(['git', ] + config + args,
                            envs=envs, cwd=cwd, output=output)