I am looping through a file that contains tags in the following format:
v10.0.20170216164446
v10.0.20170221122822
v10.0.20170221150333
v10.0.20170224112821
v10.0.20170224113321
v10.0.20170224114206
v10.0.20170224151512
v10.0.20170227181117
v10.0.20170227192857
v10.0.20170228160748
I am doing something as simple as:
while read p; do echo $p; git tag "$p"; done <../filename.txt
Ideally it should be creating all the tags as it parses them, but I get the following error:
v10.0.20170216164446
fatal: 'v10.0.20170216164446?' is not a valid tag name.
v10.0.20170221122822
fatal: 'v10.0.20170221122822?' is not a valid tag name.
v10.0.20170221150333
fatal: 'v10.0.20170221150333?' is not a valid tag name.
v10.0.20170224112821
fatal: 'v10.0.20170224112821?' is not a valid tag name.
I have no idea why it is adding a "?" after each tag. Any ideas on what might be going wrong here?