Commit 367f88e4 authored by Matthias Putz's avatar Matthias Putz

--amend

parent 591531da
...@@ -411,10 +411,7 @@ def _WindowsPager(repo): ...@@ -411,10 +411,7 @@ def _WindowsPager(repo):
args2 = args[argsSplit+1:] args2 = args[argsSplit+1:]
pager = _SelectPager(cmd.manifest.globalConfig) pager = _SelectPager(cmd.manifest.globalConfig)
shellCommand = "%s %s %s -- --piped-into-pager --no-pager %s | %s" % (python, thisScript, ' '.join(args1), ' '.join(args2), pager) shellCommand = "%s %s %s -- --piped-into-pager --no-pager %s | %s" % (python, thisScript, ' '.join(args1), ' '.join(args2), pager)
print("NEW 2")
subprocess.call(shellCommand, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) subprocess.call(shellCommand, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
#sys.stdin.close()
print("DONE")
return True return True
else: else:
# set global variable if output is piped into pager; means that pager is simulated, this # set global variable if output is piped into pager; means that pager is simulated, this
...@@ -482,7 +479,8 @@ def _Main(argv): ...@@ -482,7 +479,8 @@ def _Main(argv):
argv = list(sys.argv) argv = list(sys.argv)
argv.extend(rce.extra_args) argv.extend(rce.extra_args)
try: try:
os.execv(__file__, argv) argv.insert(0, __file__)
subprocess.call(argv)
except OSError as e: except OSError as e:
print('fatal: cannot restart repo after upgrade', file=sys.stderr) print('fatal: cannot restart repo after upgrade', file=sys.stderr)
print('fatal: %s' % e, file=sys.stderr) print('fatal: %s' % e, file=sys.stderr)
......
...@@ -44,8 +44,7 @@ def os_link(src, dst): ...@@ -44,8 +44,7 @@ def os_link(src, dst):
dst = toWindowsPath(dst) dst = toWindowsPath(dst)
# symlink does create soft links in windows for directories => use mklink # symlink does create soft links in windows for directories => use mklink
# call windows cmd tool 'mklink' from git bash (mingw) # call windows cmd tool 'mklink' from git bash (mingw)
p = subprocess.Popen('cmd /c mklink /J %s %s' % (dst, src)) subprocess.Popen('cmd /c mklink /J %s %s' % (dst, src))
p.communicate()
else: else:
# requires paths in relation to current dir (not in relation to target file) # requires paths in relation to current dir (not in relation to target file)
src = toUnixPath(src) src = toUnixPath(src)
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
</content> </content>
<orderEntry type="jdk" jdkName="Python 3.3.0 (C:/Python33/python.exe)" jdkType="Python SDK" /> <orderEntry type="jdk" jdkName="Python 3.3.0 (C:/Python33/python.exe)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Python 3.3.0 (C:/Python33/python.exe) interpreter library" level="application" />
</component> </component>
</module> </module>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment