File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 7
7
8
8
# Configuration
9
9
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
11
11
BRANCH := 3.7
12
12
LANGUAGE_TEAM := python-docs-es
13
13
LANGUAGE := es
14
14
15
15
# Internal variables
16
-
17
- UPSTREAM := https://github.com/python/cpython
18
16
VENV := $(shell realpath ./venv)
19
17
PYTHON := $(shell which python3)
20
18
WORKDIRS := $(VENV ) /workdirs
@@ -134,12 +132,8 @@ pot: setup
134
132
.PHONY : setup
135
133
setup : venv
136
134
# 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 )
143
137
# Setup the current work directory
144
138
if ! [ -d $( CPYTHON_WORKDIR) ]; then \
145
139
rm -fr $(WORKDIRS ) ; \
You can’t perform that action at this time.
0 commit comments