capistrano-scm-git_with_submodule_and_resolv_symlinks 0.1.0.beta3 → 0.1.0.beta4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abe0e3b817a4f7ea2ed0c1fcc51f288b020f169e
4
- data.tar.gz: 7cf36ccb148a7bfd07423559f8cd5cf21eed945e
3
+ metadata.gz: adc2bd320cf2ef2648e5071f19c87d892cb5b6a0
4
+ data.tar.gz: 29b61e79c38fd343e1786cf52c8efbba59297d78
5
5
  SHA512:
6
- metadata.gz: d7e3474797f1fbdbbf182bc98e0a354b2f1567e474c0f7d9d4016515ccc0542a23e93bcbfd7f29e37a406c7c48085515f3ac1e03c208e32caf7b80a1b985c075
7
- data.tar.gz: bfb94d600cdb6b270d746dfc014d8363a1e660444d7c66dd0b0ad423971bfc205310785509e5556db47b475855a9db7526a12a4a951d121907c2b8f6c015ce99
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
- And add these lines to your Capfile:
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
- :"#{nsp}_askpass" => "/bin/echo",
21
- :"#{nsp}_ssh" => fetch(:"#{nsp}_wrapper_path")
20
+ git_askpass: "/bin/echo",
21
+ git_ssh: fetch(:"#{nsp}_wrapper_path")
22
22
  }
23
23
  }
24
24
  end
@@ -13,7 +13,7 @@ end
13
13
  module Capistrano
14
14
  class SCM
15
15
  class GitWithSubmoduleAndResolvSymlinks < ::Capistrano::SCM::Plugin
16
- VERSION = "0.1.0.beta3"
16
+ VERSION = "0.1.0.beta4"
17
17
  end
18
18
  end
19
19
  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.beta3
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-06 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano