diff options
| -rwxr-xr-x | repo | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -120,6 +120,7 @@ GITC_FS_ROOT_DIR = '/gitc/manifest-rw/' | |||
| 120 | 120 | ||
| 121 | import errno | 121 | import errno |
| 122 | import optparse | 122 | import optparse |
| 123 | import platform | ||
| 123 | import re | 124 | import re |
| 124 | import shutil | 125 | import shutil |
| 125 | import stat | 126 | import stat |
| @@ -887,7 +888,10 @@ def main(orig_args): | |||
| 887 | me.extend(orig_args) | 888 | me.extend(orig_args) |
| 888 | me.extend(extra_args) | 889 | me.extend(extra_args) |
| 889 | try: | 890 | try: |
| 890 | os.execv(sys.executable, me) | 891 | if platform.system() == "Windows": |
| 892 | sys.exit(subprocess.call(me)) | ||
| 893 | else: | ||
| 894 | os.execv(sys.executable, me) | ||
| 891 | except OSError as e: | 895 | except OSError as e: |
| 892 | _print("fatal: unable to start %s" % repo_main, file=sys.stderr) | 896 | _print("fatal: unable to start %s" % repo_main, file=sys.stderr) |
| 893 | _print("fatal: %s" % e, file=sys.stderr) | 897 | _print("fatal: %s" % e, file=sys.stderr) |
