[ARVADOS] updated: 736c7c62cb2bd45637a54ac8937315ba4b64ed37

git at public.curoverse.com git at public.curoverse.com
Thu Mar 27 18:30:15 EDT 2014


Summary of changes:
 ...0547_separate_repository_from_script_version.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

       via  736c7c62cb2bd45637a54ac8937315ba4b64ed37 (commit)
      from  0136e134c210fe60e6a1e0eee5e2f77d8bc939dc (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 736c7c62cb2bd45637a54ac8937315ba4b64ed37
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Mar 27 18:30:27 2014 -0400

    Fix migration crash when script_version is nil.

diff --git a/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb b/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb
index e740987..d87b037 100644
--- a/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb
+++ b/services/api/db/migrate/20140319160547_separate_repository_from_script_version.rb
@@ -5,7 +5,7 @@ class SeparateRepositoryFromScriptVersion < ActiveRecord::Migration
     c = pt.components
     c.each do |k, v|
       commit_ish = v["script_version"]
-      if commit_ish.index(':')
+      if commit_ish.andand.index(':')
         want_repo, commit_ish = commit_ish.split(':',2)
         v[:repository] = want_repo
         v[:script_version] = commit_ish

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list