From a91124719d7cc6e6d032429cb82dd3deab60cc40 Mon Sep 17 00:00:00 2001 From: Vlad Gorodetsky Date: Fri, 25 May 2012 15:23:42 +0300 Subject: [PATCH] Fix Ruby syntax error in git ACL policy hook --- ar/07-customizing-git/01-chapter7.markdown | 4 ++-- ca/07-customizing-git/01-chapter7.markdown | 4 ++-- cs/07-customizing-git/01-chapter7.markdown | 4 ++-- de/07-customizing-git/01-chapter7.markdown | 4 ++-- en/07-customizing-git/01-chapter7.markdown | 4 ++-- es-ni/07-customizing-git/01-chapter7.markdown | 4 ++-- es/07-customizing-git/01-chapter7.markdown | 4 ++-- es/GitPro-omegat-Benzirpi.tmx | 8 ++++---- ja/07-customizing-git/01-chapter7.markdown | 4 ++-- mk/07-customizing-git/01-chapter7.markdown | 4 ++-- pt-br/07-customizing-git/01-chapter7.markdown | 4 ++-- ru/07-customizing-git/01-chapter7.markdown | 4 ++-- th/07-customizing-git/01-chapter7.markdown | 4 ++-- tr/07-customizing-git/01-chapter7.markdown | 4 ++-- zh-tw/07-customizing-git/01-chapter7.markdown | 4 ++-- 15 files changed, 32 insertions(+), 32 deletions(-) diff --git a/ar/07-customizing-git/01-chapter7.markdown b/ar/07-customizing-git/01-chapter7.markdown index 528e88b11..a7456885d 100644 --- a/ar/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/ca/07-customizing-git/01-chapter7.markdown b/ca/07-customizing-git/01-chapter7.markdown index 2531b9365..0d032bbe3 100644 --- a/ca/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/cs/07-customizing-git/01-chapter7.markdown b/cs/07-customizing-git/01-chapter7.markdown index 69ad0a702..0213a9d67 100644 --- a/cs/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/de/07-customizing-git/01-chapter7.markdown b/de/07-customizing-git/01-chapter7.markdown index 1a0998536..c1bd8f93b 100644 --- a/de/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/en/07-customizing-git/01-chapter7.markdown b/en/07-customizing-git/01-chapter7.markdown index 4723c26c6..a6c348757 100644 --- a/en/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/es-ni/07-customizing-git/01-chapter7.markdown b/es-ni/07-customizing-git/01-chapter7.markdown index 8751bc487..9553da6d6 100644 --- a/es-ni/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/es/07-customizing-git/01-chapter7.markdown b/es/07-customizing-git/01-chapter7.markdown index 8960c4c6b..4b4a79c54 100644 --- a/es/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/es/GitPro-omegat-Benzirpi.tmx b/es/GitPro-omegat-Benzirpi.tmx index 7e36e2f6b..5abc2c225 100755 --- a/es/GitPro-omegat-Benzirpi.tmx +++ b/es/GitPro-omegat-Benzirpi.tmx @@ -17461,8 +17461,8 @@ Figura 7-3. 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. 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 diff --git a/ja/07-customizing-git/01-chapter7.markdown b/ja/07-customizing-git/01-chapter7.markdown index c4b4f64bf..c22c39e37 100644 --- a/ja/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/mk/07-customizing-git/01-chapter7.markdown b/mk/07-customizing-git/01-chapter7.markdown index 528e88b11..a7456885d 100644 --- a/mk/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/pt-br/07-customizing-git/01-chapter7.markdown b/pt-br/07-customizing-git/01-chapter7.markdown index 8751bc487..9553da6d6 100644 --- a/pt-br/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/ru/07-customizing-git/01-chapter7.markdown b/ru/07-customizing-git/01-chapter7.markdown index 5dc294950..3633ade5c 100644 --- a/ru/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/th/07-customizing-git/01-chapter7.markdown b/th/07-customizing-git/01-chapter7.markdown index 528e88b11..a7456885d 100644 --- a/th/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/tr/07-customizing-git/01-chapter7.markdown b/tr/07-customizing-git/01-chapter7.markdown index 2531b9365..0d032bbe3 100644 --- a/tr/07-customizing-git/01-chapter7.markdown +++ b/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 diff --git a/zh-tw/07-customizing-git/01-chapter7.markdown b/zh-tw/07-customizing-git/01-chapter7.markdown index 38222afc0..7090a78f7 100644 --- a/zh-tw/07-customizing-git/01-chapter7.markdown +++ b/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