Skip to content
Snippets Groups Projects
Verified Commit c0a24885 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[docker_test] Don't reset hard all, just checkout the folder being tested

parent 61ae3464
No related branches found
No related tags found
No related merge requests found
...@@ -53,13 +53,13 @@ else ...@@ -53,13 +53,13 @@ else
echo "WARNING : directory does not exist ($1) ; will try to pull" echo "WARNING : directory does not exist ($1) ; will try to pull"
fi fi
echo -e "\n==== RESET HARD and pull Dockerfiles repository ====" echo -e "\n==== Pull Dockerfiles repository ===="
echo -e "Using branch \033[31m $(git rev-parse --abbrev-ref HEAD)\e[0m, is this correct ? [y/N]" echo -e "Using branch \033[31m $(git rev-parse --abbrev-ref HEAD)\e[0m, is this correct ? [y/N]"
read ans read ans
if [ $ans == "y" ]; then if [ $ans == "y" ]; then
git reset --hard
git pull git pull
git restore --source=HEAD --staged --worktree -- $1
else else
echo "Aborting." echo "Aborting."
exit 0 exit 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment