1
0
mirror of https://github.com/git/git synced 2024-07-02 15:48:44 +00:00

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: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano 2007-08-30 19:17:42 -07:00
parent 5433235dae
commit 55ced83d8a

View File

@ -140,7 +140,7 @@ do
filter_subdir="$OPTARG"
;;
--original)
orig_namespace="$OPTARG"
orig_namespace=$(expr "$OPTARG/" : '\(.*[^/]\)/*$')/
;;
*)
usage