summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-11-14 07:51:03 +0900
committerDavid Pursehouse <david.pursehouse@sonymobile.com>2012-11-14 08:17:11 +0900
commit8898e2f26d749c8548683e9c4871440a4ccfa87e (patch)
treeaaabab9f4e568f873d3674795944623e464ba451 /repo
parent52f1e5d9111c586624de48b5f705e10b67d109b3 (diff)
downloadgit-repo-8898e2f26d749c8548683e9c4871440a4ccfa87e.tar.gz
Remove magic hack
It should be assumed that on modern development environments, python is accessible to /usr/bin/env Change the shebang as necessary and remove the magic hack. This also means losing the -E option on the call to python, so that PYTHONPATH and PYTHONHOME will be respected and local configuration problems in those vars would be noticed Change-Id: I6f0708ca7693f05a4c3621c338f03619563ba630
Diffstat (limited to 'repo')
-rwxr-xr-xrepo10
1 files changed, 1 insertions, 9 deletions
diff --git a/repo b/repo
index 80eff8ff..96302c0e 100755
--- a/repo
+++ b/repo
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/usr/bin/env python
2 2
3## repo default configuration 3## repo default configuration
4## 4##
@@ -19,14 +19,6 @@ REPO_REV='stable'
19# See the License for the specific language governing permissions and 19# See the License for the specific language governing permissions and
20# limitations under the License. 20# limitations under the License.
21 21
22magic='--calling-python-from-/bin/sh--'
23"""exec" python -E "$0" "$@" """#$magic"
24if __name__ == '__main__':
25 import sys
26 if sys.argv[-1] == '#%s' % magic:
27 del sys.argv[-1]
28del magic
29
30# increment this whenever we make important changes to this script 22# increment this whenever we make important changes to this script
31VERSION = (1, 19) 23VERSION = (1, 19)
32 24