Skip to content

Instantly share code, notes, and snippets.

View patforna's full-sized avatar

Patric Fornasier patforna

View GitHub Profile
@ryanflorence
ryanflorence / GitExtractor.rb
Created July 15, 2010 02:47
Ruby class to archive and extract a git repository
#!/usr/bin/env ruby
require 'fileutils'
class GitExtractor
# Exports a git archive
#
# Arguments: params (hash)
# * path - path to git repository
# * branch - branch to extract