Skip to content

Conversation

@spacewander
Copy link
Collaborator

No description provided.

# 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