react-native-macos/Libraries/TypeSafety
Héctor Ramos ae07c53d0b Resolve "fatal: not a git repository" error outside of git repositories
Summary:
CocoaPods will display a "fatal: not a git repository" when these podspecs are consumed within Facebook's internal Mercurial repository due to the reliance on `git` to obtain the current commit hash.

In these cases, the podspec is being consumed locally and the commit hash is unnecessary.

The error is removed by avoiding the use of `git` if the current working directory is not a git repository (or any of the parent directories).

Changelog:
[Internal] [iOS] - Remove CocoaPods error within Facebook's repository

Reviewed By: fkgozali

Differential Revision: D27750974

fbshipit-source-id: 99159611c580baf5526f116948c5ff60e1c02e5c
2021-04-15 13:30:31 -07:00
..
RCTConvertHelpers.h Rewrite ObjC++ module generator 2020-09-29 14:39:40 -07:00
RCTConvertHelpers.mm Rewrite ObjC++ module generator 2020-09-29 14:39:40 -07:00
RCTTypeSafety.podspec Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
RCTTypedModuleConstants.h Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00
RCTTypedModuleConstants.mm Tidy up license headers [2/n] 2019-10-16 10:06:34 -07:00