Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Commit

Permalink
Fix Ruby syntax error in git ACL policy hook
Browse files Browse the repository at this point in the history
  • Loading branch information
bai committed May 25, 2012
1 parent 92feb66 commit a911247
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions ar/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions ca/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions cs/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions de/07-customizing-git/01-chapter7.markdown
Expand Up @@ -938,8 +938,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions en/07-customizing-git/01-chapter7.markdown
Expand Up @@ -734,8 +734,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions es-ni/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions es/07-customizing-git/01-chapter7.markdown
Expand Up @@ -670,8 +670,8 @@ Utilizando la estructura ACL devuelta por el método 'get_acl_access_data' y com
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
8 changes: 4 additions & 4 deletions es/GitPro-omegat-Benzirpi.tmx
Expand Up @@ -17461,8 +17461,8 @@ Figura 7-3.</seg>
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand All @@ -17483,8 +17483,8 @@ Figura 7-3.</seg>
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions ja/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ SHA-1 値がわかっているときにコミットからコミットメッセ
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions mk/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions pt-br/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions ru/07-customizing-git/01-chapter7.markdown
Expand Up @@ -673,8 +673,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions th/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions tr/07-customizing-git/01-chapter7.markdown
Expand Up @@ -672,8 +672,8 @@ If you use the ACL structure returned from the `get_acl_access_data` method and
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down
4 changes: 2 additions & 2 deletions zh-tw/07-customizing-git/01-chapter7.markdown
Expand Up @@ -677,8 +677,8 @@ A simple way to get the commit message from a commit when you have the SHA-1 val
next if path.size == 0
has_file_access = false
access[$user].each do |access_path|
if !access_path # user has access to everything
|| (path.index(access_path) == 0) # access to this path
if !access_path || # user has access to everything
(path.index(access_path) == 0) # access to this path
has_file_access = true
end
end
Expand Down

0 comments on commit a911247

Please sign in to comment.