6838: If env var override is not set, let crunch-job use its default.
[arvados.git] / services / api / script / migrate-gitolite-to-uuid-storage.rb
index 2b96a7dfad00cf98177ecf9272d32452317e19c6..8db1a0edadf4f8707d630d5dc02021501e0724a3 100755 (executable)
@@ -137,6 +137,9 @@ class Repository
                     File.join(repos_root, "#{uuid}.git"))
       rescue Errno::ENOENT
       end
+      if name == "arvados"
+        Dir.chdir(repos_root) { File.symlink("#{uuid}.git/", "arvados.git") }
+      end
     end
   end