fix git-fork by removing '.git'

This commit is contained in:
spacewander 2016-06-27 19:43:07 +08:00
parent 381a0ff1fb
commit 09bbb56a39

View file

@ -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