Skip to content

Print output of git commands #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/git_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def update_master
Dir.chdir(basedir) do
unless Dir.exist?('master')
log "cloning master into #{basedir}/master"
system "git clone -q #{remote_rails_url} master"
system "git clone #{remote_rails_url} master"
end

Dir.chdir('master') do
Expand All @@ -29,18 +29,18 @@ def update_master
# does not change BUNDLED WITH is left as is, even if versions differ,
# but since docs generation is automated better play safe.
system 'git checkout Gemfile.lock'
system 'git pull -q'
system 'git pull'
end
end
end

def checkout(tag)
Dir.chdir(basedir) do
log "checking out tag #{tag}"
system "git clone -q #{remote_rails_url} #{tag}"
system "git clone #{remote_rails_url} #{tag}"

Dir.chdir(tag) do
system "git checkout -q #{tag}"
system "git checkout #{tag}"
end
end
end
Expand Down