diff options
Diffstat (limited to '')
-rw-r--r-- | git.rb | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -67,6 +67,11 @@ class VCS `#{GITCMD} clone #{source} #{target}` end + def VCS.revert revno + revhash = `#{GITCMD} log --format="%H"`.split("\n").reverse[revno-1] + `#{GITCMD} checkout #{revhash} .` + VCS.commit("Reverted Poll to version #{revno}") + end end |