]> git.ipfire.org Git - thirdparty/git.git/blame - git-tag-script
[PATCH] rename git-rpush and git-rpull to git-ssh-push and git-ssh-pull
[thirdparty/git.git] / git-tag-script
CommitLineData
65f0d0ee 1#!/bin/sh
8ac069ac
JH
2# Copyright (c) 2005 Linus Torvalds
3
4: ${GIT_DIR=.git}
5
6object=${2:-$(cat "$GIT_DIR"/HEAD)}
0fc65a45 7type=$(git-cat-file -t $object) || exit 1
65f0d0ee
LT
8( echo -e "object $object\ntype $type\ntag $1\n"; cat ) > .tmp-tag
9rm -f .tmp-tag.asc
10gpg -bsa .tmp-tag && cat .tmp-tag.asc >> .tmp-tag
11git-mktag < .tmp-tag
12#rm .tmp-tag .tmp-tag.sig