File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -166,12 +166,15 @@ init :
166
166
reset :
167
167
@echo && echo -n "Warning! All local changes will be lost. Proceed? [y/N]: "
168
168
@read ans && \
169
- if [ $$ans == y ]; then \
170
- git clean -xfdf; \
171
- git reset --hard; \
172
- git submodule foreach --recursive git clean -xfdf; \
173
- git submodule foreach --recursive git reset --hard; \
174
- git submodule update --init --recursive;\
175
- else \
176
- echo "Reset aborted"; \
177
- fi
169
+ if [ $$ans == y ]; then \
170
+ echo "Resetting local repository. Please wait..."; \
171
+ $(DOCKER_RUN) $(SLAVE_IMAGE):$(SLAVE_TAG) sudo rm -rf fsroot; \
172
+ git clean -xfdf; \
173
+ git reset --hard; \
174
+ git submodule foreach --recursive git clean -xfdf; \
175
+ git submodule foreach --recursive git reset --hard; \
176
+ git submodule update --init --recursive; \
177
+ echo "Reset complete!"; \
178
+ else \
179
+ echo "Reset aborted"; \
180
+ fi
You can’t perform that action at this time.
0 commit comments