react-native-macos/Libraries
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
..
ActionSheetIOS Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
Alert Remove Unable to get TurboModule for DialogManagerAndroid warning for iOS 2021-03-26 23:48:28 -07:00
Animated Codemod usages of NativeEventEmitter in react-native-github to only pass a native module on iOS 2021-04-12 06:27:20 -07:00
AppState Codemod usages of NativeEventEmitter in react-native-github to only pass a native module on iOS 2021-04-12 06:27:20 -07:00
BatchedBridge Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
Blob Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
BugReporting Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
Components Clean up the initialization of instance variables in ScrollView 2021-04-15 12:41:48 -07:00
Core Don't disconnect DevTools WebSocket connection on Cmd+D 2021-04-14 07:42:38 -07:00
DeprecatedPropTypes Deploy Flow v0.136.0 2020-10-18 20:30:55 -07:00
EventEmitter Use native module passed to NativeEventEmitter on Android 2021-04-12 06:27:20 -07:00
FBLazyVector Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
HeapCapture Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
Image Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
Inspector Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
Interaction Delete unused FlowFixMes in xplat/js/react-native-github 2021-03-31 18:21:47 -07:00
JSInspector Migrate large amount of modules to flow strict and strict-local 2020-07-22 09:46:16 -07:00
LayoutAnimation LayoutAnimation: don't call non-Fabric configurNext if Fabric is installed 2021-03-23 14:37:25 -07:00
Linking RN: Restore Deprecated Event Methods 2021-03-10 16:06:26 -08:00
LinkingIOS Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
Lists Refactor React Native SectionList component to a functional component 2021-04-12 12:13:32 -07:00
LogBox Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
Modal Rewrite Modal to a functional component and add gating for the change 2021-04-12 12:47:00 -07:00
NativeAnimation Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
NativeComponent Integrate global.__nativeComponentRegistry__hasComponent into NativeComponentRegistry.js 2021-03-09 10:39:20 -08:00
NativeModules/specs Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
Network Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
NewAppScreen Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
Performance Deprecate markerCancel 2021-03-22 06:46:00 -07:00
PermissionsAndroid Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
Pressability Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
PushNotificationIOS Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
RCTRequired Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
ReactNative Transfer 'DisplayMode' value from Native -> JS 2021-04-12 00:05:43 -07:00
ReactPrivate Update FlowFixMes to use error codes in react-native-github 2021-03-31 18:21:47 -07:00
Reliability Adding support for cancelOnBackground for UserFlow 2020-12-07 10:49:29 -08:00
Renderer React Native sync for revisions 6d3ecb7...c9aab1c 2021-04-06 12:42:37 -07:00
Settings Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
Share Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
Storage Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
StyleSheet RN: Fallback for Invalid Colors in `processColorArray` 2021-04-02 15:07:54 -07:00
SurfaceBackedComponent Migrate remaining call sites to `CKOverlayLayoutComponent` to Builder 2020-10-20 05:58:21 -07:00
SurfaceHostingComponent Back out "Avoid accessing `self.component` on background thread" 2020-12-03 19:09:50 -08:00
Text Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
TurboModule Delete unused FlowFixMes in xplat/js/react-native-github 2021-03-31 18:21:47 -07:00
TypeSafety Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
Types Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
Utilities Codemod usages of NativeEventEmitter in react-native-github to only pass a native module on iOS 2021-04-12 06:27:20 -07:00
Vibration Resolve "fatal: not a git repository" error outside of git repositories 2021-04-15 13:30:31 -07:00
WebSocket Migrate remaining modules using NativeEventEmitter to only pass the native module on iOS 2021-04-12 06:27:20 -07:00
Wrapper Back out "Rename measure to measureContent and pass it LayoutContext" 2020-03-04 05:01:53 -08:00
YellowBox Delete YellowBox 2020-02-21 10:34:40 -08:00
__flowtests__ Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
vendor EventEmitter: Deprecate `removeSubscription` 2021-04-12 12:43:07 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
BUCK Create rn_codegen BUCK macro (#31340) 2021-04-15 13:27:38 -07:00
Promise.js Conditionalize Promise Polyfill for Hermes 2020-10-19 15:24:38 -07:00
UTFSequence.js Migrate large amount of modules to flow strict and strict-local 2020-07-22 09:46:16 -07:00
promiseRejectionTrackingOptions.js Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00