Skip to content

Commit

Permalink
use command line git instead of ruby git
Browse files Browse the repository at this point in the history
  • Loading branch information
ralph committed Feb 18, 2009
1 parent 8417aa5 commit 22eb1aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions asset_versioning.rb
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby -wKU

require 'rubygems'
require 'git'
# Ruby git gives me lots of strange errors
# require 'git'
require "ftools"

class Asset
Expand Down Expand Up @@ -31,7 +32,8 @@ def version_control!

private
def sha
Git.open(".").gblob(@filename).log.first.sha
# Git.open(".").gblob(@filename).log.first.sha
`git log #{@filename}|egrep -m 1 'commit (\\w{40})'`[-41,40]
end
end

Expand Down

0 comments on commit 22eb1aa

Please sign in to comment.