File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ReleaseTooling/Sources/FirebaseReleaser Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ import Utils
2121
2222enum Tags {
2323 static func createTags( gitRoot: URL , deleteExistingTags: Bool = false ) {
24+ if deleteExistingTags {
25+ verifyTagsAreSafeToDelete ( gitRoot: gitRoot)
26+ }
2427 let manifest = FirebaseManifest . shared
2528 createTag ( gitRoot: gitRoot, tag: " CocoaPods- \( manifest. version) " ,
2629 deleteExistingTags: deleteExistingTags)
@@ -45,7 +48,6 @@ enum Tags {
4548
4649 private static func createTag( gitRoot: URL , tag: String , deleteExistingTags: Bool ) {
4750 if deleteExistingTags {
48- verifyTagsAreSafeToDelete ( gitRoot: gitRoot)
4951 Shell . executeCommand ( " git tag --delete \( tag) " , workingDir: gitRoot)
5052 Shell . executeCommand ( " git push --delete origin \( tag) " , workingDir: gitRoot)
5153 } else {
You can’t perform that action at this time.
0 commit comments