Skip to content

Commit eb046dc

Browse files
authored
Merge pull request #545 from spacewander/via_ssh
fix git-fork by removing '.git'
2 parents 381a0ff + 09bbb56 commit eb046dc

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)