gitlab-gollum-rugged_adapter 0.4.4 → 0.4.4.1
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 +10 -1
- data/lib/rugged_adapter/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b65d506c0864d701816dbad994ada60f244a724f
|
4
|
+
data.tar.gz: 459eb1742eebae5bc2fe59f129612df371bad7d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02c6ad3e3df5a2775092d84c2de1898d9aa616d09081fd6ffd41c8602c2051684c4ec547ea4c8bf89492f771e083090143028ac87e5748f15f6318e4f89d85b1
|
7
|
+
data.tar.gz: 6dadd4c7fa7605e6128202e627c463794c1cbc5bde0f20e4ee33308fe93111ef082e1886fe8e84a0a99a35a72192d234de6d5b631785d08d3cd09c34a31668a3
|
@@ -433,11 +433,20 @@ module Gollum
|
|
433
433
|
end
|
434
434
|
|
435
435
|
def delete(path)
|
436
|
-
@index.
|
436
|
+
@index.remove(path)
|
437
437
|
update_treemap(path, false)
|
438
438
|
false
|
439
439
|
end
|
440
440
|
|
441
|
+
def delete_all(glob)
|
442
|
+
# if the path start with escape it and avoid treating it as a comment
|
443
|
+
escaped_glob = glob[0] == '#' ? glob.sub('#', '\#') : glob
|
444
|
+
|
445
|
+
@index.remove_all(escaped_glob)
|
446
|
+
update_treemap(glob, false)
|
447
|
+
false
|
448
|
+
end
|
449
|
+
|
441
450
|
def add(path, data)
|
442
451
|
blob = @rugged_repo.write(data, :blob)
|
443
452
|
@index.add(:path => path, :oid => blob, :mode => 0100644)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-gollum-rugged_adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.4
|
4
|
+
version: 0.4.4.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: 2018-
|
11
|
+
date: 2018-06-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rugged
|