1. Stefan Saasen
  2. git


Junio C Hamano  committed 55ced83

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>

  • Participants
  • Parent commits 5433235
  • Branches master

Comments (0)

Files changed (1)

File git-filter-branch.sh

View file
-		orig_namespace="$OPTARG"
+		orig_namespace=$(expr "$OPTARG/" : '\(.*[^/]\)/*$')/