diff options
-rwxr-xr-x | tests/update-dh-compat | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/update-dh-compat b/tests/update-dh-compat index 9620e5e..f327b6e 100755 --- a/tests/update-dh-compat +++ b/tests/update-dh-compat @@ -35,6 +35,12 @@ cd_fresh_d () { adjust="$toplevel"/tests/update-dh-compat-adjust adjust () { "$adjust"; } +git_filter_strip_origs () { + git for-each-ref refs/original \ + --format '%(refname)' | + xargs -rn1 git update-ref -d +} + adjust_git_filter () { # this is the dgit origin commit; this check may stop # us rewriting our normal dgit tree @@ -49,9 +55,7 @@ adjust_git_filter () { --tag-name-filter cat \ -- --all - git for-each-ref refs/original \ - --format '%(refname)' | - xargs -rn1 git update-ref -d + git_filter_strip_origs } cd "$toplevel" |