From: Peter Amstutz Date: Tue, 1 Jul 2014 15:38:27 +0000 (-0400) Subject: Change crunch-dispatch to use "git fetch-pack --all" insted of "git fetch" to X-Git-Tag: 1.1.0~2505 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c1966ec1c6a63b81202131ad372bb4b6bc45742c Change crunch-dispatch to use "git fetch-pack --all" insted of "git fetch" to fetch entire repository instead of just the history for HEAD. This seems to be the only way to ensure that arbitrary script version hashes not in the history of the source's HEAD are fetched without using refs (tags or branches). no issue # --- diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb index b1c0e7d316..c39c8ea992 100755 --- a/services/api/script/crunch-dispatch.rb +++ b/services/api/script/crunch-dispatch.rb @@ -230,7 +230,7 @@ class Dispatcher next end - $stderr.puts `cd #{arvados_internal.shellescape} && git fetch --no-tags #{src_repo.shellescape} && git tag #{job.uuid.shellescape} #{job.script_version.shellescape}` + $stderr.puts `cd #{arvados_internal.shellescape} && git fetch-pack --all #{src_repo.shellescape} && git tag #{job.uuid.shellescape} #{job.script_version.shellescape}` cmd_args << crunch_job_bin cmd_args << '--job-api-token'