1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-26 21:19:47 +01:00

populate git: reset --hard

This commit is contained in:
tv 2018-11-13 22:52:44 +01:00
parent 170c46d53c
commit ce37b2a9c2

View file

@ -40,8 +40,7 @@ let
if ! git log -1 "$hash" >/dev/null 2>&1; then
git fetch origin
fi
git checkout "$hash" -- ${quote target.path}
git -c advice.detachedHead=false checkout -f "$hash"
git reset --hard "$hash" >&2
git submodule update --init --recursive
fi