require'rugged'environmentpath=ARGV[0]environment=ARGV[1]repo=Rugged::Repository.discover(File.join(environmentpath,environment))head=repo.head#sha1 hash of the newest commithead_sha=head.target_id#the commit message associated the newest commitcommit=repo.lookup(head_sha)#add something to find the remote urlputshead_sha