Commit 55ced83d authored by Junio C Hamano's avatar 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: default avatarJunio C Hamano <gitster@pobox.com>
parent 5433235d
......@@ -140,7 +140,7 @@ do
filter_subdir="$OPTARG"
;;
--original)
orig_namespace="$OPTARG"
orig_namespace=$(expr "$OPTARG/" : '\(.*[^/]\)/*$')/
;;
*)
usage
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment