Sha256: a000730c8e9be83590ef390e23cba1e27dbf98f5cda77d711367afbf8331021f

Contents?: true

Size: 185 Bytes

Versions: 7

Compression:

Stored size: 185 Bytes

Contents

module GitHelper
  class CheckoutDefault
    def execute
      system("git checkout $(git symbolic-ref refs/remotes/origin/HEAD | sed \"s@^refs/remotes/origin/@@\")")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
git_helper-1.3.1 lib/git_helper/checkout_default.rb
git_helper-1.3.0 lib/git_helper/checkout_default.rb
git_helper-1.2.0 lib/git_helper/checkout_default.rb
git_helper-1.1.1 lib/git_helper/checkout_default.rb
git_helper-1.1.0 lib/git_helper/checkout_default.rb
git_helper-1.0.1 lib/git_helper/checkout_default.rb
git_helper-1.0.0 lib/git_helper/checkout_default.rb