Permalink
Browse files

Fix Ruby syntax error in git ACL policy hook

  • Loading branch information...
1 parent 92feb66 commit a91124719d7cc6e6d032429cb82dd3deab60cc40 @bai bai committed May 25, 2012
View
4 ar/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 ca/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 cs/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 de/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 en/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 es-ni/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 es/07-customizing-git/01-chapter7.markdown
@@ -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
View
8 es/GitPro-omegat-Benzirpi.tmx
@@ -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
@@ -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
View
4 ja/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 mk/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 pt-br/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 ru/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 th/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 tr/07-customizing-git/01-chapter7.markdown
@@ -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
View
4 zh-tw/07-customizing-git/01-chapter7.markdown
@@ -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

0 comments on commit a911247

Please sign in to comment.