File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 77
88# Configuration
99
10- CPYTHON_PATH := cpython # TODO: replace with a git submodule
10+ CPYTHON_PATH := cpython # Current commit for this upstream repo is setted by the submodule
1111BRANCH := 3.7
1212LANGUAGE_TEAM := python-docs-es
1313LANGUAGE := es
1414
1515# Internal variables
16-
17- UPSTREAM := https://github.com/python/cpython
1816VENV := $(shell realpath ./venv)
1917PYTHON := $(shell which python3)
2018WORKDIRS := $(VENV ) /workdirs
@@ -134,12 +132,8 @@ pot: setup
134132.PHONY : setup
135133setup : venv
136134 # Setup the main clone
137- if ! [ -d $( CPYTHON_PATH) ]; then \
138- git clone --depth 1 --branch $(BRANCH ) $(UPSTREAM ) $(CPYTHON_PATH ) ; \
139- else \
140- git -C $(CPYTHON_PATH ) pull --rebase; \
141- fi
142-
135+ git submodule sync
136+ git submodule update --init --force $(CPYTHON_PATH )
143137 # Setup the current work directory
144138 if ! [ -d $( CPYTHON_WORKDIR) ]; then \
145139 rm -fr $(WORKDIRS ) ; \
You can’t perform that action at this time.
0 commit comments