summaryrefslogtreecommitdiff
path: root/tests/tests/tagupl
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2023-06-14 23:38:50 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2023-06-14 23:38:50 +0100
commit72690fea191e541fda427477063ca6e599133168 (patch)
treefb84d1713c62a0c2d96605147d27fddf6edb71d5 /tests/tests/tagupl
parent8bba98f50babac1088a8657eb69dfc8368cdd684 (diff)
tests/tagupl: Rework raw-mangled to have proper error handling
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/tagupl')
-rwxr-xr-xtests/tests/tagupl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl
index 9d3e45a..c70583e 100755
--- a/tests/tests/tagupl
+++ b/tests/tests/tagupl
@@ -103,8 +103,9 @@ expect-email () {
}
raw-mangled () {
- git update-ref refs/tags/$tagname \
- $(git hash-object -w -t tag ../tagobj-$ident)
+ local tagobj
+ tagobj=$(git hash-object -w -t tag ../tagobj-$ident)
+ git update-ref refs/tags/$tagname "$tagobj"
t-tagupl-run-drs $tmp/$p
}