18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/shipitron/server/git/clone_local_copy.rb', line 18
def call
Logger.info "Using this branch: #{repository_branch}"
FileUtils.cd('/home/shipitron') do
`git clone git-cache #{Shellwords.escape application} --recursive --branch #{Shellwords.escape repository_branch}`
end
Logger.info 'Using this git commit:'
FileUtils.cd("/home/shipitron/#{application}") do
context.git_sha = `git rev-parse --short=12 HEAD`.chomp
Logger.info `git --no-pager log --format='%aN (%h): %s' -n 1`.chomp
end
end
|