krebs.build.populate fetch_git: checkout with force
This commit is contained in:
parent
2ff36bad03
commit
1226a20038
@ -116,7 +116,7 @@ let
|
|||||||
if ! test "$(git log --format=%H -1)" = "$hash"; then
|
if ! test "$(git log --format=%H -1)" = "$hash"; then
|
||||||
git fetch origin
|
git fetch origin
|
||||||
git checkout "$hash" -- "$dst_dir"
|
git checkout "$hash" -- "$dst_dir"
|
||||||
git checkout "$hash"
|
git checkout -f "$hash"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git clean -dxf
|
git clean -dxf
|
||||||
|
Loading…
Reference in New Issue
Block a user