Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git clone is something wrong #430

Closed
udemymaster opened this issue Feb 10, 2021 · 1 comment
Closed

git clone is something wrong #430

udemymaster opened this issue Feb 10, 2021 · 1 comment

Comments

@udemymaster
Copy link

I am using StaSh on Pythonista for using GitHub.

It occured when I type command 'git clone URL'.

My GitHub repository name is 'gittest', but my local repository name it made by 'git clone' was 'gittes'.
'testsomething' also changed 'testsomethin'

So I checked 'bin/git.py'.

line499

repo = Gittle.clone(args[0], args[1] if len(args) > 1 else os.path.split(args[0])[-1].rstrip('.git'), bare=False)

I guessed coused by rstrip('.git').

if repository name is finished 'g' or 'i' or 't', it delete by rstrip('.git').

I have changed rstrip('.git') to replace('.git', '') then it went well.

but, I don't know how to commit this bug because I'm beginner of GitHub

Please someone confirm this bug and fix 'bin/git.py'

@ywangd
Copy link
Owner

ywangd commented Feb 14, 2021

Thanks for reporting. This is now fixed and pushed to the dev branch.

@ywangd ywangd closed this as completed Feb 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants