Skip to content

Commit 09bbb56

Browse files
committed
fix git-fork by removing '.git'
1 parent 381a0ff commit 09bbb56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/git-fork

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ read user
1616
# extract owner + project from repo url
1717
project=${1##*/}
1818
owner=${1%/$project}
19+
[[ $project == *.git ]] && project=${project%.git}
1920
if [[ $owner == git@* ]]; then
2021
owner=${owner##*:}
2122
else

0 commit comments

Comments
 (0)