This post is deleted!last edited by
Are you sure you are in a path that is a repo?
If so, fire up stash, and
cd myreponame echo ref: refs/heads/master> .git/HEAD
Sometimes a failed clone might also end up creating a .git folder, but does not populate it, in which case you should delete the folder, or try to clone again, and say yes when it asks you to confirm overwriting.
Also note, in pythonista 2.0, you should place the gitview folder in site-packages, otherwise it won't survive global clearing.
in the above, hopefully it is obvious thatbyou should replace myreponame with the folder where your working copy is located (the same name selected in the upper left of gitui)
Also, I reccommend making an editor action out of gitview, so that you can run it and it will automatically open the path of the script you are currently editing.
oh... i see.. this might be an issue when ~/Documents has a .git folder due to a failed clone in stash.
in stash, go to ~/Documents and
rm -rf .git
I need to fix stash git so if you forget the second clone argument (path to clone to) it won't try to create a .git in Documents.
@JonB Oh. I feel stupid now. I thought you opened the repo after running the script. Never mind, there is no problem.
You should be able to open the repo after as well, by using the repo dropdown, or just typing the repo name (as a subfolder of Documents)