Skip to content

Commit

Permalink
恢复代码
Browse files Browse the repository at this point in the history
  • Loading branch information
吴锡苗 committed Nov 11, 2019
1 parent fa33cb2 commit df5b26f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions lib/cocoapods_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
podfile = installer.podfile
#puts installer.instance_variables
# forbidden submodule not cloned
#`
#git submodule update --init --recursive
#`
`
git submodule update --init --recursive
`
end

Pod::HooksManager.register('cocoapods-dev-env', :post_install) do |installer|
Expand Down Expand Up @@ -51,7 +51,11 @@ def checkTagIsEqualToHead(tag, path)
Dir.chdir(path)
result = `git describe --abbrev=4 HEAD`
Dir.chdir(currentDir)
return result.include?(tag)
if result.include?(tag)
return true
else
return checkTagOrBranchIsEqalToHead(tag, path)
end
end

# 这个函数有问题有时候拿不到相同的commit id
Expand Down

0 comments on commit df5b26f

Please sign in to comment.