mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fix git-fork by removing '.git'
This commit is contained in:
parent
381a0ff1fb
commit
09bbb56a39
|
|
@ -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