From a45a34e9d05d6b11430b1c33810f795afd75fe58 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 27 Feb 2018 15:54:29 +0100 Subject: osmo-clean-workspace: fix force checkout of a subdirectory Instead of the subdirectory, the main repository was forced checked out. Change-Id: If23e89872edf48dc5b751b3c069faf585bd6a3ef --- scripts/osmo-clean-workspace.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/osmo-clean-workspace.sh b/scripts/osmo-clean-workspace.sh index 11a5b72..4b77066 100755 --- a/scripts/osmo-clean-workspace.sh +++ b/scripts/osmo-clean-workspace.sh @@ -31,12 +31,12 @@ git clean -dxf -e "$deps" -e "layer1-headers" # but clean each git of build artifacts. if [ -d "$deps" ]; then for dep_dir in "$deps"/* ; do - git checkout -f HEAD + git -C "$dep_dir" checkout -f HEAD git -C "$dep_dir" clean -dxf done fi if [ -d "layer1-headers" ]; then - git checkout -f HEAD + git -C "layer1-headers" checkout -f HEAD git -C "layer1-headers" clean -dxf fi -- cgit v1.2.3