Skip to content

Commit

Permalink
filter-branch: make sure orig_namespace ends with a single slash.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gitster committed Aug 31, 2007
1 parent 5433235 commit 55ced83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-filter-branch.sh
Expand Up @@ -140,7 +140,7 @@ do
filter_subdir="$OPTARG"
;;
--original)
orig_namespace="$OPTARG"
orig_namespace=$(expr "$OPTARG/" : '\(.*[^/]\)/*$')/
;;
*)
usage
Expand Down

0 comments on commit 55ced83

Please sign in to comment.