gollum-grit_adapter 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/grit_adapter/git_layer_grit.rb +5 -4
- data/lib/grit_adapter/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 686ddaf10e33923c3255a114279b9969b601fa2a
|
4
|
+
data.tar.gz: 6067e9acb38ef96d169939447ead8715d88340fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51992b0620c12c45aaf3c586f798c64ac80ac805156bbe197311c892551f555afd07869bbb31ebec1a303bfe6f3940cc6990649b0b14f4231f4a9cfcb1b90218
|
7
|
+
data.tar.gz: 553545f141fc16dca610aeb82eaa62887227d7ff380f765ad3554ea28a8cfc374a7df36ad4eb89f8c9e50b9a136ee316a0272144d9d736142417117d66f4869a
|
data/Gemfile
CHANGED
@@ -127,8 +127,9 @@ module Gollum
|
|
127
127
|
# method signatures.
|
128
128
|
class Git
|
129
129
|
|
130
|
-
def initialize(git)
|
130
|
+
def initialize(git, repo_bare = false)
|
131
131
|
@git = git
|
132
|
+
@repo_bare = repo_bare
|
132
133
|
end
|
133
134
|
|
134
135
|
def exist?
|
@@ -142,7 +143,7 @@ module Gollum
|
|
142
143
|
query = Shellwords.join(query)
|
143
144
|
args = [{}, '-I', '-i', '-c', query, ref, '--']
|
144
145
|
args << options[:path] if options[:path]
|
145
|
-
result = @git.grep
|
146
|
+
result = @git.native(:grep, *args).split("\n")
|
146
147
|
result.map do |line|
|
147
148
|
branch_and_name, _, count = line.rpartition(":")
|
148
149
|
branch, _, name = branch_and_name.partition(':')
|
@@ -223,7 +224,7 @@ module Gollum
|
|
223
224
|
end
|
224
225
|
|
225
226
|
def repo
|
226
|
-
@repo ||= Grit::Repo.new(@git.git_dir)
|
227
|
+
@repo ||= Grit::Repo.new(@git.git_dir, {:is_bare => @repo_bare})
|
227
228
|
end
|
228
229
|
|
229
230
|
end
|
@@ -310,7 +311,7 @@ module Gollum
|
|
310
311
|
end
|
311
312
|
|
312
313
|
def git
|
313
|
-
@git ||= Gollum::Git::Git.new(@repo.git)
|
314
|
+
@git ||= Gollum::Git::Git.new(@repo.git, bare)
|
314
315
|
end
|
315
316
|
|
316
317
|
def commit(id)
|
data/lib/grit_adapter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum-grit_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bart Kamphorst, Dawa Ometto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gitlab-grit
|
@@ -36,14 +36,14 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - '='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version:
|
39
|
+
version: 3.4.0
|
40
40
|
type: :development
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - '='
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 3.4.0
|
47
47
|
description: Adapter for Gollum to use Grit at the backend.
|
48
48
|
email:
|
49
49
|
- repotag-dev@googlegroups.com
|