Commit 51defa9b authored by Ben Asher's avatar Ben Asher

Quote -C paths

parent 63a39cff
......@@ -96,7 +96,7 @@ module Pod
# specs to the master repo.
#
def check_if_master_repo
remotes = `git -C #{repo_dir} remote -v 2>&1`
remotes = `git -C "#{repo_dir}" remote -v 2>&1`
master_repo_urls = [
'git@github.com:CocoaPods/Specs.git',
'https://github.com/CocoaPods/Specs.git',
......@@ -145,7 +145,7 @@ module Pod
# @return [void]
#
def check_repo_status
clean = `git -C #{repo_dir} status --porcelain 2>&1` == ''
clean = `git -C "#{repo_dir}" status --porcelain 2>&1` == ''
raise Informative, "The repo `#{@repo}` at #{UI.path repo_dir} is not clean" unless clean
end
......@@ -155,7 +155,7 @@ module Pod
#
def update_repo
UI.puts "Updating the `#{@repo}' repo\n".yellow
UI.puts `git -C #{repo_dir} pull 2>&1`
UI.puts `git -C "#{repo_dir}" pull 2>&1`
end
# Commits the podspecs to the source, which should be a git repo.
......@@ -206,7 +206,7 @@ module Pod
#
def push_repo
UI.puts "\nPushing the `#{@repo}' repo\n".yellow
UI.puts `git -C #{repo_dir} push origin master 2>&1`
UI.puts `git -C "#{repo_dir}" push origin master 2>&1`
end
#---------------------------------------------------------------------#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment