pod repo update
should unset GIT_DIR before running git operations
#7958
Labels
d1:easy
An easy ticket that is a good start for first-time contributors
s2:confirmed
Issues that have been confirmed by a CocoaPods contributor
t2:defect
These are known bugs. The issue should also contain steps to reproduce. PRs welcome!
Milestone
Report
What did you do?
I updated my Podfile and ran
pod update someDep
from within agit rebase
operation, which triggered apod repo update
.What did you expect to happen?
This should have updated the cocoapods repo.
What happened instead?
Because I was in the middle of a
git rebase
, theGIT_DIR
environment variable was set. This made CocoaPods'sgit fetch
operation actually apply the operation to my local repo instead of the cocoapods spec repo.Notes
The
GIT_DIR
environment variable should be unset, but there's probably others that need to be unset too.The text was updated successfully, but these errors were encountered: