Created
September 19, 2011 07:30
-
-
Save atd/1226109 to your computer and use it in GitHub Desktop.
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
# Quick script used to import social_stream-* tags to social_stream's repository | |
Dir["*tags"].inject({}) { |res, f| | |
res[f[0..-6]] = File.read(f).split("\n") | |
res | |
}.each_pair{ |repo, tags| | |
tags.each { |tag| | |
commit = `cd ../social_stream-#{ repo } && git show #{ tag }`.split("\n"). | |
select{ |l| l =~ /^commit/ }. | |
first. | |
gsub("commit ", "") | |
system "git tag #{ repo }#{ tag[1..-1] } #{ commit }" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment