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

fix git-fork by removing '.git' #545

Merged
merged 1 commit into from
Jun 27, 2016
Merged

fix git-fork by removing '.git' #545

merged 1 commit into from
Jun 27, 2016

Conversation

spacewander
Copy link
Collaborator

No description provided.

@@ -16,6 +16,7 @@ read user
# extract owner + project from repo url
project=${1##*/}
owner=${1%/$project}
[[ $project == *.git ]] && project=${project%.git}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to do the test here. Just project=${project%.git} is fine.
If the suffix is there, it will be removed; if not, nothing happens.

@hemanth
Copy link
Collaborator

hemanth commented Jun 27, 2016

Let us merge this for now, as it fixes a breaking commit.

@hemanth hemanth merged commit eb046dc into tj:master Jun 27, 2016
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

Successfully merging this pull request may close these issues.

3 participants