sourcerer_ 0.0.2.pre → 0.0.6.pre
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -2
- data/lib/sourcerer/metadata.rb +1 -1
- metadata +28 -98
- data/spec/fixtures/i18n.yml +0 -5
- data/spec/fixtures/source.dir/bar/file.bar +0 -0
- data/spec/fixtures/source.dir/foo/file.foo +0 -0
- data/spec/fixtures/source.git/COMMIT_EDITMSG +0 -1
- data/spec/fixtures/source.git/HEAD +0 -1
- data/spec/fixtures/source.git/config +0 -7
- data/spec/fixtures/source.git/description +0 -1
- data/spec/fixtures/source.git/hooks/applypatch-msg.sample +0 -15
- data/spec/fixtures/source.git/hooks/commit-msg.sample +0 -24
- data/spec/fixtures/source.git/hooks/post-update.sample +0 -8
- data/spec/fixtures/source.git/hooks/pre-applypatch.sample +0 -14
- data/spec/fixtures/source.git/hooks/pre-commit.sample +0 -49
- data/spec/fixtures/source.git/hooks/pre-push.sample +0 -54
- data/spec/fixtures/source.git/hooks/pre-rebase.sample +0 -169
- data/spec/fixtures/source.git/hooks/prepare-commit-msg.sample +0 -36
- data/spec/fixtures/source.git/hooks/update.sample +0 -128
- data/spec/fixtures/source.git/index +0 -0
- data/spec/fixtures/source.git/info/exclude +0 -6
- data/spec/fixtures/source.git/logs/HEAD +0 -1
- data/spec/fixtures/source.git/logs/refs/heads/master +0 -1
- data/spec/fixtures/source.git/objects/35/d778d19cdf4fea30f1f8090d3167723b3421ec +0 -0
- data/spec/fixtures/source.git/objects/65/5cd0061e2c5fba07b5e38fbc6a8a752f0d8a8e +0 -0
- data/spec/fixtures/source.git/objects/92/469c6ba0e1585b36e474ef8e5dc069daa28842 +0 -0
- data/spec/fixtures/source.git/objects/c7/e09aa454d4e5b551131ed168bc5ba5d6169753 +0 -3
- data/spec/fixtures/source.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391 +0 -0
- data/spec/fixtures/source.git/refs/heads/master +0 -1
- data/spec/fixtures/source.zip +0 -0
- data/spec/lib/sourcerer/core_spec.rb +0 -118
- data/spec/lib/sourcerer/error_spec.rb +0 -15
- data/spec/lib/sourcerer/source_type_spec.rb +0 -139
- data/spec/lib/sourcerer/source_types/dir_spec.rb +0 -2
- data/spec/lib/sourcerer/source_types/git_spec.rb +0 -26
- data/spec/lib/sourcerer/source_types/zip_spec.rb +0 -2
- data/spec/lib/sourcerer_spec.rb +0 -15
- data/spec/spec_helper.rb +0 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2020d3062d1bb7daeb5a0487431130b0dc88ec53
|
4
|
+
data.tar.gz: e0099da441a531c0a11f2f7ae391bb8e19f751d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef1783a34156c0b334b8ec7bf6ac6219fc9c6b507916d10f26915a49c726f3e4b025ce46827ae50bebf0a53122c9c1165c48111630fbbde4fe610d39c47eba26
|
7
|
+
data.tar.gz: 480a184cef7a4a7a77d80c38818dbd66b1ccdaf3397a5df5239d5bc8b06366dd50d11a33865869a7497f61669bcd6ed70642922d3825da268c1ea64186d7ff09
|
data/CHANGELOG.md
CHANGED
data/lib/sourcerer/metadata.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sourcerer_
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Brewster
|
@@ -28,112 +28,112 @@ dependencies:
|
|
28
28
|
name: git
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: i18n
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubyzip
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: coveralls
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: guard
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: guard-bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '>='
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '>='
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: guard-rubocop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - '>='
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: guard-rspec
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - '>='
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
|
-
- -
|
136
|
+
- - '>='
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
@@ -154,14 +154,14 @@ dependencies:
|
|
154
154
|
name: rspec
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - '>='
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
|
-
- -
|
164
|
+
- - '>='
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
167
|
- !ruby/object:Gem::Dependency
|
@@ -182,32 +182,32 @@ dependencies:
|
|
182
182
|
name: terminal-notifier
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- -
|
185
|
+
- - '>='
|
186
186
|
- !ruby/object:Gem::Version
|
187
187
|
version: '0'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- -
|
192
|
+
- - '>='
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: terminal-notifier-guard
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
|
-
- -
|
199
|
+
- - '>='
|
200
200
|
- !ruby/object:Gem::Version
|
201
201
|
version: '0'
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
|
-
- -
|
206
|
+
- - '>='
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
description:
|
210
|
-
email: brewster1134@gmail.com
|
210
|
+
email: brewster1134+rubygems@gmail.com
|
211
211
|
executables: []
|
212
212
|
extensions: []
|
213
213
|
extra_rdoc_files: []
|
@@ -224,41 +224,6 @@ files:
|
|
224
224
|
- lib/sourcerer/source_types/git.rb
|
225
225
|
- lib/sourcerer/source_types/zip.rb
|
226
226
|
- lib/sourcerer_.rb
|
227
|
-
- spec/fixtures/i18n.yml
|
228
|
-
- spec/fixtures/source.dir/bar/file.bar
|
229
|
-
- spec/fixtures/source.dir/foo/file.foo
|
230
|
-
- spec/fixtures/source.git/COMMIT_EDITMSG
|
231
|
-
- spec/fixtures/source.git/HEAD
|
232
|
-
- spec/fixtures/source.git/config
|
233
|
-
- spec/fixtures/source.git/description
|
234
|
-
- spec/fixtures/source.git/hooks/applypatch-msg.sample
|
235
|
-
- spec/fixtures/source.git/hooks/commit-msg.sample
|
236
|
-
- spec/fixtures/source.git/hooks/post-update.sample
|
237
|
-
- spec/fixtures/source.git/hooks/pre-applypatch.sample
|
238
|
-
- spec/fixtures/source.git/hooks/pre-commit.sample
|
239
|
-
- spec/fixtures/source.git/hooks/pre-push.sample
|
240
|
-
- spec/fixtures/source.git/hooks/pre-rebase.sample
|
241
|
-
- spec/fixtures/source.git/hooks/prepare-commit-msg.sample
|
242
|
-
- spec/fixtures/source.git/hooks/update.sample
|
243
|
-
- spec/fixtures/source.git/index
|
244
|
-
- spec/fixtures/source.git/info/exclude
|
245
|
-
- spec/fixtures/source.git/logs/HEAD
|
246
|
-
- spec/fixtures/source.git/logs/refs/heads/master
|
247
|
-
- spec/fixtures/source.git/objects/35/d778d19cdf4fea30f1f8090d3167723b3421ec
|
248
|
-
- spec/fixtures/source.git/objects/65/5cd0061e2c5fba07b5e38fbc6a8a752f0d8a8e
|
249
|
-
- spec/fixtures/source.git/objects/92/469c6ba0e1585b36e474ef8e5dc069daa28842
|
250
|
-
- spec/fixtures/source.git/objects/c7/e09aa454d4e5b551131ed168bc5ba5d6169753
|
251
|
-
- spec/fixtures/source.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391
|
252
|
-
- spec/fixtures/source.git/refs/heads/master
|
253
|
-
- spec/fixtures/source.zip
|
254
|
-
- spec/lib/sourcerer/core_spec.rb
|
255
|
-
- spec/lib/sourcerer/error_spec.rb
|
256
|
-
- spec/lib/sourcerer/source_type_spec.rb
|
257
|
-
- spec/lib/sourcerer/source_types/dir_spec.rb
|
258
|
-
- spec/lib/sourcerer/source_types/git_spec.rb
|
259
|
-
- spec/lib/sourcerer/source_types/zip_spec.rb
|
260
|
-
- spec/lib/sourcerer_spec.rb
|
261
|
-
- spec/spec_helper.rb
|
262
227
|
homepage: https://github.com/brewster1134/sourcerer
|
263
228
|
licenses:
|
264
229
|
- WTFPL
|
@@ -269,53 +234,18 @@ require_paths:
|
|
269
234
|
- lib
|
270
235
|
required_ruby_version: !ruby/object:Gem::Requirement
|
271
236
|
requirements:
|
272
|
-
- -
|
237
|
+
- - '>='
|
273
238
|
- !ruby/object:Gem::Version
|
274
239
|
version: 2.0.0p247
|
275
240
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
276
241
|
requirements:
|
277
|
-
- -
|
242
|
+
- - '>'
|
278
243
|
- !ruby/object:Gem::Version
|
279
244
|
version: 1.3.1
|
280
245
|
requirements: []
|
281
246
|
rubyforge_project:
|
282
|
-
rubygems_version: 2.6.
|
247
|
+
rubygems_version: 2.6.7
|
283
248
|
signing_key:
|
284
249
|
specification_version: 4
|
285
250
|
summary: Consume local & remote sources with ease
|
286
|
-
test_files:
|
287
|
-
- spec/fixtures/i18n.yml
|
288
|
-
- spec/fixtures/source.dir/bar/file.bar
|
289
|
-
- spec/fixtures/source.dir/foo/file.foo
|
290
|
-
- spec/fixtures/source.git/COMMIT_EDITMSG
|
291
|
-
- spec/fixtures/source.git/config
|
292
|
-
- spec/fixtures/source.git/description
|
293
|
-
- spec/fixtures/source.git/HEAD
|
294
|
-
- spec/fixtures/source.git/hooks/applypatch-msg.sample
|
295
|
-
- spec/fixtures/source.git/hooks/commit-msg.sample
|
296
|
-
- spec/fixtures/source.git/hooks/post-update.sample
|
297
|
-
- spec/fixtures/source.git/hooks/pre-applypatch.sample
|
298
|
-
- spec/fixtures/source.git/hooks/pre-commit.sample
|
299
|
-
- spec/fixtures/source.git/hooks/pre-push.sample
|
300
|
-
- spec/fixtures/source.git/hooks/pre-rebase.sample
|
301
|
-
- spec/fixtures/source.git/hooks/prepare-commit-msg.sample
|
302
|
-
- spec/fixtures/source.git/hooks/update.sample
|
303
|
-
- spec/fixtures/source.git/index
|
304
|
-
- spec/fixtures/source.git/info/exclude
|
305
|
-
- spec/fixtures/source.git/logs/HEAD
|
306
|
-
- spec/fixtures/source.git/logs/refs/heads/master
|
307
|
-
- spec/fixtures/source.git/objects/35/d778d19cdf4fea30f1f8090d3167723b3421ec
|
308
|
-
- spec/fixtures/source.git/objects/65/5cd0061e2c5fba07b5e38fbc6a8a752f0d8a8e
|
309
|
-
- spec/fixtures/source.git/objects/92/469c6ba0e1585b36e474ef8e5dc069daa28842
|
310
|
-
- spec/fixtures/source.git/objects/c7/e09aa454d4e5b551131ed168bc5ba5d6169753
|
311
|
-
- spec/fixtures/source.git/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391
|
312
|
-
- spec/fixtures/source.git/refs/heads/master
|
313
|
-
- spec/fixtures/source.zip
|
314
|
-
- spec/lib/sourcerer/core_spec.rb
|
315
|
-
- spec/lib/sourcerer/error_spec.rb
|
316
|
-
- spec/lib/sourcerer/source_type_spec.rb
|
317
|
-
- spec/lib/sourcerer/source_types/dir_spec.rb
|
318
|
-
- spec/lib/sourcerer/source_types/git_spec.rb
|
319
|
-
- spec/lib/sourcerer/source_types/zip_spec.rb
|
320
|
-
- spec/lib/sourcerer_spec.rb
|
321
|
-
- spec/spec_helper.rb
|
251
|
+
test_files: []
|
data/spec/fixtures/i18n.yml
DELETED
File without changes
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
source.git
|
@@ -1 +0,0 @@
|
|
1
|
-
ref: refs/heads/master
|
@@ -1 +0,0 @@
|
|
1
|
-
Unnamed repository; edit this file 'description' to name the repository.
|
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to check the commit log message taken by
|
4
|
-
# applypatch from an e-mail message.
|
5
|
-
#
|
6
|
-
# The hook should exit with non-zero status after issuing an
|
7
|
-
# appropriate message if it wants to stop the commit. The hook is
|
8
|
-
# allowed to edit the commit message file.
|
9
|
-
#
|
10
|
-
# To enable this hook, rename this file to "applypatch-msg".
|
11
|
-
|
12
|
-
. git-sh-setup
|
13
|
-
test -x "$GIT_DIR/hooks/commit-msg" &&
|
14
|
-
exec "$GIT_DIR/hooks/commit-msg" ${1+"$@"}
|
15
|
-
:
|
@@ -1,24 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to check the commit log message.
|
4
|
-
# Called by "git commit" with one argument, the name of the file
|
5
|
-
# that has the commit message. The hook should exit with non-zero
|
6
|
-
# status after issuing an appropriate message if it wants to stop the
|
7
|
-
# commit. The hook is allowed to edit the commit message file.
|
8
|
-
#
|
9
|
-
# To enable this hook, rename this file to "commit-msg".
|
10
|
-
|
11
|
-
# Uncomment the below to add a Signed-off-by line to the message.
|
12
|
-
# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
|
13
|
-
# hook is more suited to it.
|
14
|
-
#
|
15
|
-
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
|
16
|
-
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
|
17
|
-
|
18
|
-
# This example catches duplicate Signed-off-by lines.
|
19
|
-
|
20
|
-
test "" = "$(grep '^Signed-off-by: ' "$1" |
|
21
|
-
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
|
22
|
-
echo >&2 Duplicate Signed-off-by lines.
|
23
|
-
exit 1
|
24
|
-
}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to verify what is about to be committed
|
4
|
-
# by applypatch from an e-mail message.
|
5
|
-
#
|
6
|
-
# The hook should exit with non-zero status after issuing an
|
7
|
-
# appropriate message if it wants to stop the commit.
|
8
|
-
#
|
9
|
-
# To enable this hook, rename this file to "pre-applypatch".
|
10
|
-
|
11
|
-
. git-sh-setup
|
12
|
-
test -x "$GIT_DIR/hooks/pre-commit" &&
|
13
|
-
exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
|
14
|
-
:
|
@@ -1,49 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
#
|
3
|
-
# An example hook script to verify what is about to be committed.
|
4
|
-
# Called by "git commit" with no arguments. The hook should
|
5
|
-
# exit with non-zero status after issuing an appropriate message if
|
6
|
-
# it wants to stop the commit.
|
7
|
-
#
|
8
|
-
# To enable this hook, rename this file to "pre-commit".
|
9
|
-
|
10
|
-
if git rev-parse --verify HEAD >/dev/null 2>&1
|
11
|
-
then
|
12
|
-
against=HEAD
|
13
|
-
else
|
14
|
-
# Initial commit: diff against an empty tree object
|
15
|
-
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
|
16
|
-
fi
|
17
|
-
|
18
|
-
# If you want to allow non-ASCII filenames set this variable to true.
|
19
|
-
allownonascii=$(git config --bool hooks.allownonascii)
|
20
|
-
|
21
|
-
# Redirect output to stderr.
|
22
|
-
exec 1>&2
|
23
|
-
|
24
|
-
# Cross platform projects tend to avoid non-ASCII filenames; prevent
|
25
|
-
# them from being added to the repository. We exploit the fact that the
|
26
|
-
# printable range starts at the space character and ends with tilde.
|
27
|
-
if [ "$allownonascii" != "true" ] &&
|
28
|
-
# Note that the use of brackets around a tr range is ok here, (it's
|
29
|
-
# even required, for portability to Solaris 10's /usr/bin/tr), since
|
30
|
-
# the square bracket bytes happen to fall in the designated range.
|
31
|
-
test $(git diff --cached --name-only --diff-filter=A -z $against |
|
32
|
-
LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0
|
33
|
-
then
|
34
|
-
cat <<\EOF
|
35
|
-
Error: Attempt to add a non-ASCII file name.
|
36
|
-
|
37
|
-
This can cause problems if you want to work with people on other platforms.
|
38
|
-
|
39
|
-
To be portable it is advisable to rename the file.
|
40
|
-
|
41
|
-
If you know what you are doing you can disable this check using:
|
42
|
-
|
43
|
-
git config hooks.allownonascii true
|
44
|
-
EOF
|
45
|
-
exit 1
|
46
|
-
fi
|
47
|
-
|
48
|
-
# If there are whitespace errors, print the offending file names and fail.
|
49
|
-
exec git diff-index --check --cached $against --
|