gollum-rugged_adapter 0.99.4 → 0.99.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugged_adapter/git_layer_rugged.rb +6 -2
- data/lib/rugged_adapter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b52a878c106ae3c5aee6eb2871ddf060117c6eaaff0a33a101b29704be75e9b9
|
4
|
+
data.tar.gz: f652fe0afa40f2e2bd93f823d813afe5d4dc218b5f52754c09d3899d715966bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43e6d20d1c1959208331dd36643e6f2384b72e530fdfc09d13bdffee5ef69734924bd12244f04b2588fc66ab80f33b8aaebe87a039b3001a2e93c6dca3d35d9c
|
7
|
+
data.tar.gz: 43cb1739e0b909fae184a5857dd7971d0582e9b3a883df7b6fbf49d00edcbca0bc458399f73e94a8984767ea6651abfbaa2e18460a505b33675e979487f73503
|
@@ -126,6 +126,10 @@ module Gollum
|
|
126
126
|
@stats ||= build_stats
|
127
127
|
end
|
128
128
|
|
129
|
+
def parent
|
130
|
+
@commit.parents.empty? ? nil : Gollum::Git::Commit.new(@commit.parents.first)
|
131
|
+
end
|
132
|
+
|
129
133
|
private
|
130
134
|
|
131
135
|
def build_stats
|
@@ -227,7 +231,7 @@ module Gollum
|
|
227
231
|
path = path.nil? ? path : [path]
|
228
232
|
options = options.merge({:paths => path, :strategy => :force})
|
229
233
|
if ref == 'HEAD'
|
230
|
-
@repo.checkout_head(options)
|
234
|
+
@repo.checkout_head(**options)
|
231
235
|
else
|
232
236
|
ref = "refs/heads/#{ref}" unless ref =~ /^refs\/heads\//
|
233
237
|
@repo.checkout_tree(sha_from_ref(ref), options)
|
@@ -559,7 +563,7 @@ module Gollum
|
|
559
563
|
class Repo
|
560
564
|
|
561
565
|
def initialize(path, options)
|
562
|
-
@repo = Rugged::Repository.new(path, options)
|
566
|
+
@repo = Rugged::Repository.new(path, **options)
|
563
567
|
end
|
564
568
|
|
565
569
|
def self.init(path)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gollum-rugged_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.99.
|
4
|
+
version: 0.99.6
|
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: 2020-
|
11
|
+
date: 2020-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|