Comments (2)
I find the solution~
from git-bzr-ng.
Solution
This repo https://github.com/alexreg/git-bzr-ng/commits/master has a wrong solution
- proc = subprocess.Popen(cmd, stdout=stdout, stdin=stdin)
+ proc = subprocess.Popen(cmd, stdout=stdout, stdin=stdin, shell=True)
because in Linux "shell=True" don't run args[1] etc.
cat /etc/issue
Ubuntu 13.04 \n \l
# arg is a program that print its arguments
python -c "import subprocess; subprocess.Popen(['arg', 'a'])"
0: arg
1: a
python -c "import subprocess; subprocess.Popen(['arg', 'a'], shell=True)"
0: arg
The right solution is therefore
if hasattr(cmd, '__iter__')
proc = subprocess.Popen(cmd, stdout=stdout, stdin=stdin)
# a bug http://stackoverflow.com/a/36327/1299708 require shell=True
else
proc = subprocess.Popen(cmd, stdout=stdout, stdin=stdin, shell=True)
from git-bzr-ng.
Related Issues (20)
- bzr-fastimport.patch - still required? HOT 2
- git bzr push fails HOT 1
- git-bzr-ng branch tries to allocate awesome amount of memory HOT 1
- Do you plan to release? HOT 7
- Nicer errors when I forget to install bzr?
- Fail earlier when bzr-fastexport is unavailable
- Make it a remote helper HOT 2
- crash during fast-import HOT 1
- Possible to use existing shared bzr repository already available locally?
- git bare repo not supported
- setup.py for pip install HOT 1
- git bzr clone is not deleting some files HOT 3
- bazaar revisions numbers HOT 2
- git bzr push after github merge fails HOT 4
- Import fails for branches with regex-special-chars in names
- How do I install the project? HOT 4
- how to generate source.changes file?
- Traceback on `git bzr push --overwrite` HOT 1
- Not such a bidirectional bridge? HOT 2
- How do I initialize a repo that hasn't been pushed to launchpad and only resides on my computer?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-bzr-ng.