Skip to content

Commit ff4dee5

Browse files
committed
fix(fork): get better repo name
1 parent ede3a6e commit ff4dee5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

hooks/pre-fork.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if [[ $url =~ $re ]]; then
1414
hostname=${BASH_REMATCH[3]}
1515
user=${BASH_REMATCH[4]}
1616
repo=${BASH_REMATCH[5]}
17+
repo=${repo/\.git/}
1718

1819
echo "$url download in progress"
1920
$GIT clone "git@github.com:$user/$repo.git" &> /dev/null

0 commit comments

Comments
 (0)