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:
parent
170c46d53c
commit
ce37b2a9c2
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue