0.0
No commit activity in last 3 years
No release in over 3 years
checkout a particular ref from git inside a particular directory
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.0

Runtime

= 0.4.0
 Project Readme

Build Status

GitRefresh

Checkout a particular ref from git inside a particular directory

Installation

Add this line to your application's Gemfile:

gem 'git_refresh'

And then execute:

$ bundle

Or install it yourself as:

$ gem install git_refresh

Usage

  • see git_refresh --help for most current instructions

Checking out a master branch of a git repo to a directory

git_refresh refresh --source-url https://github.com/foo/bar.git --target-dir /tmp/bar

Checking out a specific git ref to a directory

git_refresh refresh --source-url https://github.com/foo/bar.git --target-dir /tmp/bar --ref mybranch

Troubleshooting

  • If you can't find the git_refresh command and your using rbenv be sure to run rbenv rehash after installing the gem to create the necessary symlinks

Support

This software is not supported by Puppet, Inc. Use at your own risk.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/GeoffWilliams/git_refresh.

Running tests

  • git_refresh includes a comprehensive tests. Please ensure tests pass before and after any PRs
  • Run all tests bundle exec rake spec
  • Run specific test file bundle exec rspec ./spec/SPEC/FILE/TO/RUN.rb
  • Run specific test case bundle exec rspec ./spec/SPEC/FILE/TO/RUN.rb:99 (where 99 is the line number of the test)