Reputation: 1447
Creating a tag with git mktag output - invalid tag signature file
The command:
$ git mktag <ss >dd
ss - input file:
object 70b744ec08d09e2c8f5a0ba577ee6a9d3cc5d7a7
type commit
tag 11111
tagger Bob Bubbins <[email protected]> 26-Mar-21 06:18:54 PM
New tag
dd - output file
ERORR:
error: char47: could not find "\ntype " fatal: invalid tag signature file
What is this error?
Upvotes: 0
Views: 66
Reputation: 23119
Are you on Windows? This looks like it might be a problem due to Windows using two characters to indicate line endings. It seems that the second of those characters is being taken as the first character of the "type" field label in the input. Since "\ntype" is not the same as "type", you're getting the error you are seeing.
I would suggest that you try resaving the file "ss" to have Linux-style line endings.
Upvotes: 2