{"thread":{"id":"1248","subject":"[PATCH 5/6] Update git-tag-script to create the .git/refs/tags if it does not already exist","startedAt":"2005-07-15T01:00:15Z","lastAt":"2005-07-15T01:00:15Z","messageCount":1,"participants":["Eric W. Biederman"],"isPatch":true,"patchVersion":1,"patchTotal":6},"messages":[{"id":"6160","messageId":"m1br54yjc0.fsf@ebiederm.dsl.xmission.com","threadId":"1248","inReplyTo":null,"subject":"[PATCH 5/6] Update git-tag-script to create the .git/refs/tags if it does not already exist","fromName":"Eric W. Biederman","fromEmail":"ebiederm@xmission.com","sentAt":"2005-07-15T01:00:15Z","receivedAt":"2005-07-15T01:00:15Z","isPatch":true,"sender":{"key":"ebiederm@xmission.com","avatar":"https://avatars.githubusercontent.com/u/7477136?v=4"},"body":"\nWhen testing tags I ran into an interesting problem.\ngit-tag-script dies if .git/refs/tags/ does not exist.\nAnd that directory didn't get created when I build my repository,\nso we need to create it if it doesn't exist.\n\nSigned-of-by: Eric W. Biederman <ebiederm@xmission.com> \n---\n\n git-tag-script |    1 +\n 1 files changed, 1 insertions(+), 0 deletions(-)\n\n362c96f2a2959b648c8313d3530ea1e6df17e96c\ndiff --git a/git-tag-script b/git-tag-script\n--- a/git-tag-script\n+++ b/git-tag-script\n@@ -20,5 +20,6 @@ grep -v '^#' < .editmsg | git-stripspace\n ( echo -e \"object $object\\ntype $type\\ntag $name\\n\"; cat .tagmsg ) > .tmp-tag\n rm -f .tmp-tag.asc .tagmsg\n gpg -bsa .tmp-tag && cat .tmp-tag.asc >> .tmp-tag\n+mkdir -p \"$GIT_DIR/refs/tags\"\n git-mktag < .tmp-tag > \"$GIT_DIR/refs/tags/$name\"\n #rm .tmp-tag .tmp-tag.sig\n"}]}