Skip to content

Commit b4a9bd0

Browse files
committed
Force checkout of k8s
To avoid re-cloning all of k8s I usually copy over my repo from my normal path. But when I do that and am on `master` I get warnings when trying to checkout the given sha. Since this is a kubernetes folder just for this project, it seems reasonable to me to add the `-f` checkout and discard local changes if they exist. Signed-off-by: John Schnake <[email protected]>
1 parent 455859e commit b4a9bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fetch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ fi
3434
if [[ -d "kubernetes" ]] ; then
3535
echo "kubernetes/ exists, not cloning..."
3636
pushd kubernetes
37-
git checkout $kubernetes_sha
37+
git checkout $kubernetes_sha -f
3838
popd
3939
else
4040
git clone https://github.com/kubernetes/kubernetes.git

0 commit comments

Comments
 (0)