Permalink
Browse files

Change repository matching strategy to work with our Github ssh setup

  • Loading branch information...
1 parent a766525 commit 139a67fdf105a9c61cad3dcecefad771f7548b7f @byroot byroot committed Mar 19, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/integrity/payload.rb
  2. +1 −1 lib/integrity/project_finder.rb
View
@@ -41,7 +41,7 @@ def uri
repository = @payload["repository"]
if repository["private"]
- "git@github.com:#{URI(repository["url"]).path[1..-1]}"
+ "#{URI(repository["url"]).path[1..-1]}"
else
uri = URI(repository["url"])
uri.scheme = "git"
@@ -31,7 +31,7 @@ def forked
end
def all
- @all ||= Project.all(:uri.like => "#{@repo.uri}%")
+ @all ||= Project.all(:uri.like => "%#{@repo.uri}%")
end
end
end

0 comments on commit 139a67f

Please sign in to comment.