ghpages_deploy 1.1.0.beta6 → 1.1.0.beta7
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/ghpages_deploy/deployer.rb +3 -0
- data/lib/ghpages_deploy/version.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: a4761cf44934e563892cce74450f7ac96d665299
|
|
4
|
+
data.tar.gz: 30e8f54211cf8a44bb599272a46bca07cfdfa97f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe4ac5a291639e3c4bd3df4c25e37640e073a62b7c52378e614795b26ebe2f7e90ed6d7b73fbb0b6fba989e405fc997eb27f9a07f297bb8c3c85aea547ec9d44
|
|
7
|
+
data.tar.gz: 2236711eb3efad84b03e48658aeec4b067cf2a7a072347622016c86612125683f6f16fe4b482395351261c4b207892dac1f180934d91f4503050d96c0010954a
|
|
@@ -31,6 +31,9 @@ module GithubPages
|
|
|
31
31
|
# create the full path to the destination
|
|
32
32
|
FileUtils.mkdir_p(dest)
|
|
33
33
|
|
|
34
|
+
# remove files that are already staged as a result of switching branches
|
|
35
|
+
@git.staged_modifications('.').each { |file| File.delete(file) }
|
|
36
|
+
|
|
34
37
|
# remove files that are already cached in the destination directory
|
|
35
38
|
@git.ls_files(dest).each { |file| File.delete(file) }
|
|
36
39
|
|