Allow user to pass git command to makefile (#10318)

Summary:
This allows users to pass their git command with extra options if necessary.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10318

Reviewed By: ajkr

Differential Revision: D37661175

Pulled By: lth

fbshipit-source-id: 2a7cf27626c74f167471e6ec57e3870630a582b0
main
Manuel Ung 2 years ago committed by Facebook GitHub Bot
parent 2acbf386a3
commit 071fe39c05
  1. 5
      Makefile

@ -136,6 +136,7 @@ CXXFLAGS += $(PLATFORM_SHARED_CFLAGS) -DROCKSDB_DLL
CFLAGS += $(PLATFORM_SHARED_CFLAGS) -DROCKSDB_DLL CFLAGS += $(PLATFORM_SHARED_CFLAGS) -DROCKSDB_DLL
endif endif
GIT_COMMAND ?= git
ifeq ($(USE_COROUTINES), 1) ifeq ($(USE_COROUTINES), 1)
USE_FOLLY = 1 USE_FOLLY = 1
OPT += -DUSE_COROUTINES OPT += -DUSE_COROUTINES
@ -2356,9 +2357,9 @@ commit_prereq:
# integration. # integration.
checkout_folly: checkout_folly:
if [ -e third-party/folly ]; then \ if [ -e third-party/folly ]; then \
cd third-party/folly && git fetch origin; \ cd third-party/folly && ${GIT_COMMAND} fetch origin; \
else \ else \
cd third-party && git clone https://github.com/facebook/folly.git; \ cd third-party && ${GIT_COMMAND} clone https://github.com/facebook/folly.git; \
fi fi
@# Pin to a particular version for public CI, so that PR authors don't @# Pin to a particular version for public CI, so that PR authors don't
@# need to worry about folly breaking our integration. Update periodically @# need to worry about folly breaking our integration. Update periodically

Loading…
Cancel
Save