author | Johannes Sixt <johannes.sixt@telecom.at> | |
Thu, 21 Aug 2008 14:45:11 +0000 (16:45 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 22 Aug 2008 06:39:13 +0000 (23:39 -0700) | ||
commit | a9da1663dfc869141749c768e9e0f52bb48218e3 | |
tree | 5e283122f98ba71812f09d7cc297e02a3ea52e05 | tree | snapshot |
parent | 5a4a088add3bdcbe86ae7e87964ce4025ddbc389 | commit | diff |
filter-branch: Grok special characters in tag names
The tag rewriting code used a 'sed' expression to substitute the new tag
name into the corresponding field of the annotated tag object. But this is
problematic if the tag name contains special characters. In particular,
if the tag name contained a slash, then the 'sed' expression had a syntax
error. We now protect against this by using 'printf' to assemble the
tag header.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The tag rewriting code used a 'sed' expression to substitute the new tag
name into the corresponding field of the annotated tag object. But this is
problematic if the tag name contains special characters. In particular,
if the tag name contained a slash, then the 'sed' expression had a syntax
error. We now protect against this by using 'printf' to assemble the
tag header.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-filter-branch.sh | diff | blob | history | |
t/t7003-filter-branch.sh | diff | blob | history |