summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-02-27 15:54:29 +0100
committerAlexander Couzens <lynxis@fe80.eu>2018-02-27 15:55:13 +0100
commita45a34e9d05d6b11430b1c33810f795afd75fe58 (patch)
tree59f9a6dbcf73c9b592432c66752d951b35481c3e /scripts
parent8bab2702b45543620c28c9d8bcaef04f9656f32a (diff)
osmo-clean-workspace: fix force checkout of a subdirectory
Instead of the subdirectory, the main repository was forced checked out. Change-Id: If23e89872edf48dc5b751b3c069faf585bd6a3ef
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/osmo-clean-workspace.sh4
1 files changed, 2 insertions, 2 deletions
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