Chromium Code Reviews| Index: git-number |
| diff --git a/git-cl b/git-number |
| similarity index 53% |
| copy from git-cl |
| copy to git-number |
| index 8032f98377a22e9b515695d17b128b02c01cd2e0..a441aa90f7ff2b5023b58fc2a1f8fca52b17715c 100755 |
| --- a/git-cl |
| +++ b/git-number |
| @@ -1,10 +1,10 @@ |
| #!/bin/sh |
| -# Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +# Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| -# git-cl -- a git-command for integrating reviews on Rietveld |
| -# Copyright (C) 2008 Evan Martin <martine@danga.com> |
| +# git-number -- a git-command for calculating and displaying the generation |
| +# number of a commit. |
| # Test if this script is running under a MSys install. If it is, we will |
| # hardcode the path to Python where possible. |
| @@ -20,8 +20,8 @@ fi |
| # Uncomment this line if you never use gclient. |
| # "$base_dir"/update_depot_tools |
| -if [ -e "$base_dir/python.bat" -a $MINGW = 0 ]; then |
| - PYTHONDONTWRITEBYTECODE=1 cmd.exe //c "$base_dir\\python.bat" "$base_dir\\git_cl.py" "$@" |
| +if [ -d "$base_dir/python_bin" -a $MINGW = 0 ]; then |
|
M-A Ruel
2013/11/07 20:59:11
Use the new way that works with 2.7.5.
iannucci
2013/11/07 21:44:57
Done!!
|
| + PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/python_bin/python.exe" "$base_dir"/git_number.py "$@" |
| else |
| - PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/git_cl.py" "$@" |
| + PYTHONDONTWRITEBYTECODE=1 exec "$base_dir/git_number.py" "$@" |
| fi |