summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5433235)
raw | patch | inline | side by side (parent: 5433235)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 31 Aug 2007 02:17:42 +0000 (19:17 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 31 Aug 2007 02:17:42 +0000 (19:17 -0700) |
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>
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>
git-filter-branch.sh | patch | blob | history |
diff --git a/git-filter-branch.sh b/git-filter-branch.sh
index ec2f75de56799bc404f62c76e24b2dfa3f82b6f7..c166c978ec2a6e1dc26d8fb117c12ae59ca5b7fd 100755 (executable)
--- a/git-filter-branch.sh
+++ b/git-filter-branch.sh
filter_subdir="$OPTARG"
;;
--original)
- orig_namespace="$OPTARG"
+ orig_namespace=$(expr "$OPTARG/" : '\(.*[^/]\)/*$')/
;;
*)
usage