-
Notifications
You must be signed in to change notification settings - Fork 349
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
Use git -C instad of Dir.chdir #352
Conversation
def git(args, include_error: false) | ||
command = 'git ' << args.join(' ') | ||
def repo_git(args, include_error: false) | ||
command = "git -C #{repo} " << args.join(' ') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this shell command get quoted properly?
What version of |
Looks like 1.8.5 |
I think system git is 2.7.4
Though this may be sierra specific |
Xcode 7 git is 2.7.4 as well. You can do the following to verify with your Xcode version:
|
Looks like Xcode 8b6 git is 2.8.4. Haven't had a chance to check GM |
I doubt they'll jump back a major version, so that should be 👍 |
2de478a
to
0ac13d7
Compare
GM is still git 2.8.4. |
This removes all of the git-related
Dir.chdir
s. There's only one left, but I'm not sure that one is as easy to circumvent? This fixes issues related to CocoaPods not being able to find source repos and trying to re-create existing ones.