Skip to content

Commit

Permalink
move remote update to make reset instead
Browse files Browse the repository at this point in the history
  • Loading branch information
yxieca committed Oct 8, 2020
1 parent 88fdac5 commit 6fee17b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ showtag:

init :
@git submodule update --init --recursive
@git submodule foreach --recursive git remote update &>/dev/null
@git submodule foreach --recursive '[ -f .git ] && echo "gitdir: $$(realpath --relative-to=. $$(cut -d" " -f2 .git))" > .git'

.ONESHELL : reset
Expand All @@ -302,6 +301,7 @@ reset :
git reset --hard;
git submodule foreach --recursive 'git clean -xfdf || true';
git submodule foreach --recursive 'git reset --hard || true';
git submodule foreach --recursive 'git remote update || true';
git submodule update --init --recursive;
echo "Reset complete!";
else
Expand Down

0 comments on commit 6fee17b

Please sign in to comment.