Skip to content

Commit 1c37f81

Browse files
committed
script/ceph-backport: allow hyphen in project during ceph fork deduction
This will allow the fork deduction code to recognize project names that include a hyphen, such as: [email protected]:USERNAME/ceph-fork.git Signed-off-by: J. Eric Ivancich <[email protected]>
1 parent 862ed6e commit 1c37f81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/script/ceph-backport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ function maybe_deduce_remote {
779779
else
780780
assert_fail "bad remote_type ->$remote_type<- in maybe_deduce_remote"
781781
fi
782-
remote=$(git remote -v | grep --extended-regexp --ignore-case '(://|@)github.com(/|:|:/)'${url_component}'/ceph(\s|\.|\/)' | head -n1 | cut -f 1)
782+
remote=$(git remote -v | grep --extended-regexp --ignore-case '(://|@)github.com(/|:|:/)'${url_component}'/ceph(\s|\.|\/|-)' | head -n1 | cut -f 1)
783783
echo "$remote"
784784
}
785785

0 commit comments

Comments
 (0)