Forum Archive

Shellista- Git Clone error

ihf

I have no trouble downloading Gists but I have tried using shellista to download a git with git clone url
and the first time I try it says "Error:" and the 2nd time it says "Errno 17: /.git already exists. What am I doing wrong?

dgelessus

The git command doesn't automatically overwrite files and folders, so the destination folder needs to be empty, or at least it shouldn't contain files named like those in the repo. In addition you need to cd into the folder and type "rm .git" to remove the invisible .git folder.

By the way, GitHub URLs for the git command should look like this: https://github.com/author/reponame.git (e. g. https://github.com/dgelessus/pythonista-scripts.git )

ihf

Thanks. I created a new directory and got a new error:

mkdir update

cd update
git clone github.com/transistor1/shellista.git
Error: No module named config

JonB

I've seen this in the old versions of shellista, after first installing. Try restarting pythonista, and rerunning shellista.

ihf

Unfortunately, that didn't help.

JonB

Are you running the latest shellista? Or are you trying to run an old version to update to the new?
If you are running an old version, delete it, as well as the dependencies (dulwich, gittle, etc), and install from the copy/paste method.
If you are running the new version, make sure there are no copies of dulwich on your path. Shellista installs a custom dulwich version. Config is a module in dulwich, iirc.

ihf

OK. I deleted all the support files (dulwich, mimer, pipista, etc.) and now it works properly.
Thanks!