mirror of
https://github.com/git/git
synced 2024-10-30 04:01:21 +00:00
0fc65a4572
Linus said: "Let's see what else I forgot.." Not that many, but here they are. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
8 lines
265 B
Bash
Executable file
8 lines
265 B
Bash
Executable file
#!/bin/sh
|
|
object=${2:-$(cat .git/HEAD)}
|
|
type=$(git-cat-file -t $object) || exit 1
|
|
( echo -e "object $object\ntype $type\ntag $1\n"; cat ) > .tmp-tag
|
|
rm -f .tmp-tag.asc
|
|
gpg -bsa .tmp-tag && cat .tmp-tag.asc >> .tmp-tag
|
|
git-mktag < .tmp-tag
|
|
#rm .tmp-tag .tmp-tag.sig
|