Add fail safe to check uncommitted changes
This commit is contained in:
parent
ddf62c4c20
commit
d88c066f42
@ -115,6 +115,9 @@ class << Merger = Object.new
|
||||
end
|
||||
tagname = "v#{v.join('_')}#{("_#{pl}" if v[0] < "2" || (v[0] == "2" && v[1] < "1") || /^(?:preview|rc)/ =~ pl)}"
|
||||
|
||||
unless execute('git', 'diff', '--exit-code')
|
||||
abort 'uncommitted changes'
|
||||
end
|
||||
unless execute('git', 'tag', tagname)
|
||||
abort 'specfied tag already exists. check tag name and remove it if you want to force re-tagging'
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user