mina-git-submodules 1.0.0 → 1.0.1
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 +4 -4
- data/lib/mina/git-submodules/version.rb +1 -1
- data/lib/mina/git-submodules.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c5fed0bd809e0586230e1026f2e7b20314ba64a
|
4
|
+
data.tar.gz: d24cfca1763a7e2f3c4274a4423667779695f6df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3117e57cb622db2de0a289f5dfb92178f3c5cd42cde537ba702120d47b17a53bc7903ad8b35e29570cc410e05f494982a55170afbaa8e678de18e1b36b7d0611
|
7
|
+
data.tar.gz: f1abcc96bd61d95e3cb9816047c63480bc6a65a46b28309d09b9ab35f22ae27408bcc2a988a96e477770d10f81997ea7fee38dbd267f660b35090c2ba2bfdb97
|
data/lib/mina/git-submodules.rb
CHANGED
@@ -22,7 +22,7 @@ namespace :git do
|
|
22
22
|
#{echo_cmd %[git clone "#{fetch(:repository)}" "#{fetch(:deploy_to)}/scm" --recursive && (cd "#{fetch(:deploy_to)}/scm" && git checkout -b deploy #{fetch(:branch)})]}
|
23
23
|
else
|
24
24
|
echo "-----> Fetching new git commits"
|
25
|
-
#{echo_cmd %[(cd "#{fetch(:deploy_to)}/scm" && git fetch "#{fetch(:repository)}" "#{fetch(:branch)}:#{fetch(:branch)}" --force && git reset --hard #{fetch(:branch)})]}
|
25
|
+
#{echo_cmd %[(cd "#{fetch(:deploy_to)}/scm" && git fetch "#{fetch(:repository)}" "#{fetch(:branch)}:#{fetch(:branch)}" --force -u && git reset --hard #{fetch(:branch)})]}
|
26
26
|
fi &&
|
27
27
|
echo "-----> Updating git submodules" &&
|
28
28
|
#{echo_cmd %[(cd "#{fetch(:deploy_to)}/scm" && git submodule init && git submodule sync && git submodule update --init --recursive)]} &&
|