提交 55ced83d 编写于 作者: J Junio C Hamano

filter-branch: make sure orig_namespace ends with a single slash.

Later in a loop any existing ref whose path begins with it is
removed.  It would be a disaster if you allowed it to say refs/head
for example.
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 5433235d
......@@ -140,7 +140,7 @@ do
filter_subdir="$OPTARG"
;;
--original)
orig_namespace="$OPTARG"
orig_namespace=$(expr "$OPTARG/" : '\(.*[^/]\)/*$')/
;;
*)
usage
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册