Add option --force
This commit is contained in:
parent
033f882dca
commit
55d8b3133f
3
tagger
3
tagger
|
@ -10,6 +10,7 @@ ap.add_argument("--fullyear", action="store_true")
|
|||
ap.add_argument("--day-always", action="store_true")
|
||||
ap.add_argument("--prefix", default="r")
|
||||
ap.add_argument("--noop", action="store_true")
|
||||
ap.add_argument("--force", action="store_true")
|
||||
args = ap.parse_args()
|
||||
|
||||
subprocess.run(["git", "pull"])
|
||||
|
@ -35,7 +36,7 @@ for ln in result.stdout.split("\n"):
|
|||
need_tag = True
|
||||
|
||||
print(need_tag, found_tags)
|
||||
if need_tag:
|
||||
if need_tag or args.force:
|
||||
today = datetime.date.today()
|
||||
version = []
|
||||
if args.fullyear:
|
||||
|
|
Loading…
Reference in New Issue