Skip to content
Snippets Groups Projects
Commit aeac1027 authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files
parents f5769836 c0a24885
No related branches found
No related tags found
No related merge requests found
......@@ -53,13 +53,13 @@ else
echo "WARNING : directory does not exist ($1) ; will try to pull"
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]"
read ans
if [ $ans == "y" ]; then
git reset --hard
git pull
git restore --source=HEAD --staged --worktree -- $1
else
echo "Aborting."
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