[ARVADOS] updated: 9065715dd01b90f961a2b5118686075dfc13e458

git at public.curoverse.com git at public.curoverse.com
Wed Feb 12 09:20:43 EST 2014


Summary of changes:
 services/api/app/models/commit_ancestor.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

       via  9065715dd01b90f961a2b5118686075dfc13e458 (commit)
      from  d86f4c7485e7338e3725687634014c7711b83bfd (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 9065715dd01b90f961a2b5118686075dfc13e458
Author: Tom Clegg <tom at curoverse.com>
Date:   Wed Feb 12 06:20:03 2014 -0800

    Fix git_dir path in CommitAncestor model. Fixes #2089

diff --git a/services/api/app/models/commit_ancestor.rb b/services/api/app/models/commit_ancestor.rb
index c3c6d53..71ea57f 100644
--- a/services/api/app/models/commit_ancestor.rb
+++ b/services/api/app/models/commit_ancestor.rb
@@ -19,7 +19,7 @@ class CommitAncestor < ActiveRecord::Base
       next if repo.match /^\./
       git_dir = repo.match(/\.git$/) ? repo : File.join(repo, '.git')
       repo_name = repo.sub(/\.git$/, '')
-      ENV['GIT_DIR'] = File.join(@gitdirbase, repo, '.git')
+      ENV['GIT_DIR'] = File.join(@gitdirbase, git_dir)
       IO.foreach("|git rev-list --format=oneline '#{self.descendant.gsub /[^0-9a-f]/,""}'") do |line|
         self.is = false
         sha1, message = line.strip.split(" ", 2)
@@ -34,7 +34,7 @@ class CommitAncestor < ActiveRecord::Base
       end
     end
     if self.is.nil?
-      raise CommitNotFoundError: "Specified commit was not found"
+      raise CommitNotFoundError.new "Specified commit was not found"
     end
   end
 end

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list