Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Broken pipe error using StaSh’s git push
-
I am neither good at programming nor English. I am sorry if the meaning is difficult to understand.
I cloned git remote repository I constructed in other environment to iPad with StaSh, worked there, push the change and I got an error saying[my app]$ git push Attempting to push to: https://github.com/####/***.git, branch: refs/heads/master stash: <class 'urllib2.URLError'>: <urlopen error [Errno 32] Broken pipe>
The directory structure is as follows.
my app/.git/~
/public/**.js, **.html, **.PNG
/package.json, Procfile, readme.md, server.jsSince I do not know how to “git add [directory]” with StaSh, I typed "git add *. *" under public dir and I did "git commit" and "git push" under my app dir.
How can I solve this problem?
-
The format has collapsed, but the correct directory structure is as follows.
my app/.git/...
my app/public/***.js, ***.PNG, ***.html
my app/package.json, Procfile, Readme.md, server.js -
I am not sure about this error, but I have got a error related to the urllib pacakge. It seems the package requires running on python 2.7
Hope that helps. -
@tkrk, every time I have encountered this error it has been because of a large file, typically a large picture.
Recovering from the situation has required cloning the remote repository again.
Workaround is to make your images smaller, if possible. I do not know what the exact limit is, but something well under 100 kb is usually fine.
This is a very annoying issue, and I am not aware of a real solution. I have been forced to use Working Copy – and less convenient workflow – instead.
-
iIRC, if you set up ssh access and use ssh to push, while it is slower, it doesnt have the broken pipe problem.
Newer dulwich has corrected this i think. I have mostly integrated this into stash, but havent gotten around to getting everything working yet