git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Git-tag's over-aggressive pipework fails badly on fresh Ubuntu, over NFS.

From
Samium Gromoff <_deepfire@feelingofgreen.ru>
Date
Sep 25, 2007, 22:34 UTC
Message-ID
<87hclifk7i.wl@betelheise.deep.net>
Hello folks,

Without the following applied, git-tag -s gets zeroes into TAG_TMP in place of the .asc sig, resulting in an unsigned commit.

My repository is located on a NFS share, and I didn't check with NFS factored out, so it might be more extensive.

I'm not sure what's the policy -- "go and fix Ubuntu, your filesystem and your kernel", or "let's go the safe way", so there it is.

--- a/git-tag   2007-09-07 22:12:11.000000000 +0400
+++ b/git-tag   2007-09-26 02:19:42.000000000 +0400
@@ -143,7 +143,8 @@
     rm -f "$GIT_DIR"/TAG_TMP.asc "$GIT_DIR"/TAG_FINALMSG
     if [ "$signed" ]; then
        gpg -bsa -u "$username" "$GIT_DIR"/TAG_TMP &&
-       cat "$GIT_DIR"/TAG_TMP.asc >>"$GIT_DIR"/TAG_TMP ||
+       cat "$GIT_DIR"/TAG_TMP "$GIT_DIR"/TAG_TMP.asc > "$GIT_DIR"/TAG_TMP_RELAY &&
+       mv "$GIT_DIR"/TAG_TMP_RELAY "$GIT_DIR"/TAG_TMP ||
        die "failed to sign the tag with GPG."
     fi
     object=$(git-mktag < "$GIT_DIR"/TAG_TMP)

Git is 1.5.2.5-2build1/Gutsy.

regards, Samium Gromoff
Next: Johannes Schindelin
Message 1 of 2 in “Git-tag's over-aggressive pipework fails badly on fresh Ubuntu, over NFS.”
  1. Samium GromoffSep 25, 2007
  2. Johannes SchindelinSep 25, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.