From 1c37f81fd8504a81094c610425db8c1976f1e9b0 Mon Sep 17 00:00:00 2001 From: "J. Eric Ivancich" Date: Thu, 19 Dec 2024 12:11:06 -0500 Subject: [PATCH] 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: git@github.com:USERNAME/ceph-fork.git Signed-off-by: J. Eric Ivancich --- src/script/ceph-backport.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/ceph-backport.sh b/src/script/ceph-backport.sh index a56509e3d3abd..c216ed32d9bdc 100755 --- a/src/script/ceph-backport.sh +++ b/src/script/ceph-backport.sh @@ -779,7 +779,7 @@ function maybe_deduce_remote { else assert_fail "bad remote_type ->$remote_type<- in maybe_deduce_remote" fi - remote=$(git remote -v | grep --extended-regexp --ignore-case '(://|@)github.com(/|:|:/)'${url_component}'/ceph(\s|\.|\/)' | head -n1 | cut -f 1) + remote=$(git remote -v | grep --extended-regexp --ignore-case '(://|@)github.com(/|:|:/)'${url_component}'/ceph(\s|\.|\/|-)' | head -n1 | cut -f 1) echo "$remote" } -- 2.39.5