mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #545 from spacewander/via_ssh
fix git-fork by removing '.git'
This commit is contained in:
commit
eb046dcdb3
|
|
@ -16,6 +16,7 @@ read user
|
|||
# extract owner + project from repo url
|
||||
project=${1##*/}
|
||||
owner=${1%/$project}
|
||||
[[ $project == *.git ]] && project=${project%.git}
|
||||
if [[ $owner == git@* ]]; then
|
||||
owner=${owner##*:}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue