Check for rugged or output UNIX epoch
This commit is contained in:
parent
f765903e25
commit
c2bd0d3ca1
@ -1,4 +1,9 @@
|
|||||||
|
begin
|
||||||
require 'rugged'
|
require 'rugged'
|
||||||
|
rescue LoadError => e
|
||||||
|
t = Time.new
|
||||||
|
puts t.to_i
|
||||||
|
else
|
||||||
|
|
||||||
environmentpath = ARGV[0]
|
environmentpath = ARGV[0]
|
||||||
environment = ARGV[1]
|
environment = ARGV[1]
|
||||||
@ -15,3 +20,4 @@ commit = repo.lookup(head_sha)
|
|||||||
#add something to find the remote url
|
#add something to find the remote url
|
||||||
|
|
||||||
puts head_sha
|
puts head_sha
|
||||||
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user