From 09bbb56a39fc33819337c63d0205280e8596795c Mon Sep 17 00:00:00 2001 From: spacewander Date: Mon, 27 Jun 2016 19:43:07 +0800 Subject: [PATCH] fix git-fork by removing '.git' --- bin/git-fork | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/git-fork b/bin/git-fork index c879451..b3e4098 100755 --- a/bin/git-fork +++ b/bin/git-fork @@ -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