cocoapods-githooks 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/cocoapods-githooks.rb +1 -1
- data/lib/githooks-synctool.rb +4 -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: 8d66ffc5ad32dab33a9332720bec1a060c713d332ad7f83939eb15afa537d587
|
4
|
+
data.tar.gz: 4deeec2ae5b2751bf489418669df2ac1e485bf02e797d09f6bbefb771024cf27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f379dec163dddcc9c9a1eff30f26c04c940c5c78bfbe79df8b47ff38e7213b2661735cb1e7ef52ea661a9ef2875aa672debc77e98f77eec1cb5bfa251967909
|
7
|
+
data.tar.gz: 3a32457c6c5eedbfdecbcf30276fb83393a7cdaf02f292a89af27383b91ab660cfa263f9419dada2e49c1120449807b23f4c1181d0ee9f0a3857eb41c09300ee
|
data/lib/cocoapods-githooks.rb
CHANGED
data/lib/githooks-synctool.rb
CHANGED
@@ -5,6 +5,10 @@ module CocoapodsGitHooks
|
|
5
5
|
class GitHooksSynctool
|
6
6
|
def sync
|
7
7
|
Pod::UI.puts "Synchronizing git hooks"
|
8
|
+
if !File.directory?(".git")
|
9
|
+
Pod::UI.puts "It is not a git repository, aborting"
|
10
|
+
return
|
11
|
+
end
|
8
12
|
if !File.directory?(".git-hooks")
|
9
13
|
Pod::UI.puts ".git-hooks directory not found, nothing to sync"
|
10
14
|
return
|