1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-11-30 06:59:46 +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 if ! git log -1 "$hash" >/dev/null 2>&1; then
git fetch origin git fetch origin
fi fi
git checkout "$hash" -- ${quote target.path} git reset --hard "$hash" >&2
git -c advice.detachedHead=false checkout -f "$hash"
git submodule update --init --recursive git submodule update --init --recursive
fi fi