-
-
Save sandeeplearner/ba0df728f20aee0e6e3131ff8b45b6a2 to your computer and use it in GitHub Desktop.
use syscall
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
value = syscall("git tag --sort=committerdate") | |
tags_in_repo = value.split("\n").reverse() | |
tags_in_repo.each do |repo| | |
if repo.to_f == @tag_to_be_checkout | |
puts "Tag found alreay in #{repo}" | |
checkout_specifc_tag(repo) | |
return | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment