vtasks 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/vtasks/utils/git.rb +13 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf6ec4c38b47a3aba51ce6d41e33ea65557cc7e713748034c69c17f05d87716b
|
4
|
+
data.tar.gz: adfc75d44061aad0c738a7eabb1731e46fb23153948c8e8c1907b0b538d116e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0480457cbd810baa96a9ba2c7261782baff124cb97f7c5de39b68f03ccccf6607fcbfaad42416cb513468a338c4fc98671d004fbf4b0e87505bb0021c5f1a2f0
|
7
|
+
data.tar.gz: 5a37d09fb4c5e71cfc23f98ccfbdcdfab37172bb7edae9381cab0880a9fbf49e0d85d82ca3f799617ff74f459590277fb5ec565ce7bc8acc47f985cbd0b0ec2d
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [v0.0.15](https://github.com/vladgh/vtasks/tree/v0.0.15) (2018-10-12)
|
4
|
+
[Full Changelog](https://github.com/vladgh/vtasks/compare/v0.0.14...v0.0.15)
|
5
|
+
|
6
|
+
**Implemented enhancements:**
|
7
|
+
|
8
|
+
- Add git method to deepen the repo [\#27](https://github.com/vladgh/vtasks/issues/27)
|
9
|
+
|
3
10
|
## [v0.0.14](https://github.com/vladgh/vtasks/tree/v0.0.14) (2018-10-12)
|
4
11
|
[Full Changelog](https://github.com/vladgh/vtasks/compare/v0.0.13...v0.0.14)
|
5
12
|
|
data/lib/vtasks/utils/git.rb
CHANGED
@@ -41,6 +41,19 @@ module Git
|
|
41
41
|
|
42
42
|
true
|
43
43
|
end
|
44
|
+
|
45
|
+
# Deepen repository history
|
46
|
+
# In case there is a shallow clone (only the tip of the specified branch). This has the advantage of minimizing the amount of data transfer necessary from the repository and speeding up the build because it pulls only the minimal code necessary.
|
47
|
+
# Because of this, if you need to perform a custom action that relies on a different branch, you won’t be able to checkout that branch, unless you do one of the following:
|
48
|
+
# $ git pull --depth=50
|
49
|
+
# $ git fetch --unshallow origin
|
50
|
+
def git_deepen_repo
|
51
|
+
git_dir = `git rev-parse --git-dir`.strip
|
52
|
+
if File.file?("#{git_dir}/shallow")
|
53
|
+
info 'Deepen repository history'
|
54
|
+
sh "git fetch --unshallow origin"
|
55
|
+
end
|
56
|
+
end
|
44
57
|
end # module Git
|
45
58
|
end # module Utils
|
46
59
|
end # module Vtasks
|