pack-objects: reuse data from existing packs.
[gitweb.git] / git-tag.sh
index 6d0c973239a1b72bbef43aa430f1ee534b7ab458..c74e1b4151a3d05a5825dc7dcba2dfaf1ad9a0fa 100755 (executable)
@@ -85,7 +85,8 @@ if [ "$annotate" ]; then
        exit 1
     }
 
-    ( echo -e "object $object\ntype $type\ntag $name\ntagger $tagger\n";
+    ( printf 'object %s\ntype %s\ntag %s\ntagger %s\n\n' \
+       "$object" "$type" "$name" "$tagger";
       cat "$GIT_DIR"/TAG_FINALMSG ) >"$GIT_DIR"/TAG_TMP
     rm -f "$GIT_DIR"/TAG_TMP.asc "$GIT_DIR"/TAG_FINALMSG
     if [ "$signed" ]; then