capistrano-scm-git_with_submodule_and_resolv_symlinks 0.1.0.beta3 → 0.1.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: adc2bd320cf2ef2648e5071f19c87d892cb5b6a0
|
4
|
+
data.tar.gz: 29b61e79c38fd343e1786cf52c8efbba59297d78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 681e788a134b1f06626ba75a122cc58d8c7ae1ebacfae38e465282003b5f5ba18c816f5d73cb4bb792dfb95908e353bb3ee9aef344bdc5e2e0a42d58bba30bdd
|
7
|
+
data.tar.gz: 8436f74355e04d7bab556a15b942bbc16405bd9237b4436a502849500d1c617e594752f8bd8ca2c0aab28a4ec18872dd0bb508b96099137202fe1ec7c33d6a19
|
data/README.md
CHANGED
@@ -8,6 +8,20 @@ This is Capistrano [Custom SCM plugin](http://capistranorb.com/documentation/adv
|
|
8
8
|
- Resolving symlinks
|
9
9
|
- Subtree
|
10
10
|
|
11
|
+
### Git with submodule
|
12
|
+
|
13
|
+
Capistrano::SCM::Git does not support git submodule,
|
14
|
+
but Capistrano::SCM::GitWithSubmoduleAndResolvSymlinks supports.
|
15
|
+
|
16
|
+
### Resolving symlinks
|
17
|
+
|
18
|
+
Capistrano::SCM::GitWithSubmoduleAndResolvSymlinks transforms symlinks into
|
19
|
+
referent files/directories by `rsync --copy-links ...` command.
|
20
|
+
|
21
|
+
### Subtree
|
22
|
+
|
23
|
+
Configuration variable `:repo_tree` is supported as same as Capistrano::SCM::Git
|
24
|
+
|
11
25
|
## Installation
|
12
26
|
|
13
27
|
Add this line to your application's Gemfile:
|
@@ -24,13 +38,35 @@ Or install it yourself as:
|
|
24
38
|
|
25
39
|
$ gem install capistrano-scm-git_with_submodule_and_resolv_symlinks
|
26
40
|
|
27
|
-
|
41
|
+
## Usage
|
42
|
+
|
43
|
+
Add these lines to your Capfile:
|
28
44
|
|
29
45
|
```ruby
|
30
46
|
require "capistrano/scm/git_with_submodule_and_resolv_symlinks"
|
31
47
|
install_plugin Capistrano::SCM::GitWithSubmoduleAndResolvSymlinks
|
32
48
|
```
|
33
49
|
|
50
|
+
## Incompatibilties with Capistrano::SCM::Git
|
51
|
+
|
52
|
+
### `repo_path` is non-bare repository
|
53
|
+
|
54
|
+
Capistrano::SCM::Git creates `repo_path` as bare repository (by `git clone --mirror url repo_path`),
|
55
|
+
but Capistrano::SCM::GitWithSubmoduleAndResolvSymlinks creates `repo_path` as non-bare repository
|
56
|
+
(by `git clone url repo_path`).
|
57
|
+
|
58
|
+
If you want to switch SCM, delete `repo_path` before deploy.
|
59
|
+
|
60
|
+
### `current_revision` is abbreviated
|
61
|
+
|
62
|
+
With Capistrano::SCM::Git, `current_version` is non-abbreviated commit hash (like `81cec13b777ff46348693d327fc8e7832f79bf43`),
|
63
|
+
but with Capistrano::SCM::GitWithSubmoduleAndResolvSymlinks, `current_version` is abbreviated (like `81cec13`).
|
64
|
+
|
65
|
+
### Shallow clone is not supported
|
66
|
+
|
67
|
+
Capistrano::SCM::Git supports shallow clone by configuration variable `:git_shallow_clone`,
|
68
|
+
but Capistrano::SCM::GitWithSubmoduleAndResolvSymlinks does not support.
|
69
|
+
|
34
70
|
## Development
|
35
71
|
|
36
72
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -17,8 +17,8 @@ module Capistrano
|
|
17
17
|
}
|
18
18
|
set_if_empty :"#{nsp}_environmental_variables", lambda {
|
19
19
|
{
|
20
|
-
:
|
21
|
-
:
|
20
|
+
git_askpass: "/bin/echo",
|
21
|
+
git_ssh: fetch(:"#{nsp}_wrapper_path")
|
22
22
|
}
|
23
23
|
}
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-scm-git_with_submodule_and_resolv_symlinks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YAMADA Tsuyoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|