1
0
mirror of https://github.com/git/git.git synced 2024-09-28 04:10:41 +02:00

git-verify-tag: make sure we remove temporary file.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2007-01-03 12:34:20 -08:00
parent 0bc72abdb0
commit 60c0f8462f

View File

@ -34,7 +34,10 @@ t)
;;
esac
trap 'rm -f "$GIT_DIR/.tmp-vtag"' 0
git-cat-file tag "$1" >"$GIT_DIR/.tmp-vtag" || exit 1
cat "$GIT_DIR/.tmp-vtag" |
sed '/-----BEGIN PGP/Q' |
gpg --verify "$GIT_DIR/.tmp-vtag" - || exit 1