Change crunch-dispatch to use "git fetch-pack --all" insted of "git fetch" to
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 1 Jul 2014 15:38:27 +0000 (11:38 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 1 Jul 2014 15:38:27 +0000 (11:38 -0400)
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 #

services/api/script/crunch-dispatch.rb

index b1c0e7d316f2a245c82f727406b31f8490ed4e0b..c39c8ea9922f9708028eadbddce1cbc90eae4635 100755 (executable)
@@ -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'