Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Git] Remove calls to Dir.chdir #62

Merged
merged 4 commits into from
Oct 16, 2016
Merged

[Git] Remove calls to Dir.chdir #62

merged 4 commits into from
Oct 16, 2016

Conversation

endocrimes
Copy link
Member

Copy link
Member

@benasher44 benasher44 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

end
options = {}
options[:git] = url
options[:commit] = `git -C #{target_path} rev-parse HEAD`.chomp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add quotes around #{target_path}

@endocrimes
Copy link
Member Author

@benasher44 👍 updated and added a 📝 entry.

@@ -15,7 +15,7 @@ def options_specific?
def checkout_options
options = {}
options[:git] = url
options[:commit] = `git -C #{target_path} rev-parse HEAD`.chomp
options[:commit] = `git -C "#{target_path}" rev-parse HEAD`.chomp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use git!("-C", target_path, "rev-parse", "HEAD") ?

Copy link
Member Author

@endocrimes endocrimes Oct 15, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed someone had used 's for a reason and didn't want to change that in this PR, can switch it to target_git` tho

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sg2m

@endocrimes
Copy link
Member Author

@segiddins @benasher44 Updated

@segiddins segiddins merged commit 9ceb3f0 into master Oct 16, 2016
@segiddins segiddins deleted the dani_git_c branch October 16, 2016 21:52
endocrimes added a commit to CocoaPods/cocoapods-integration-specs that referenced this pull request Oct 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pod trunk push fails, likely because it fails to checkout git submodule
3 participants