[PATCH] osmo-ci[master]: osmo-clean-workspace: fix force checkout of a subdirectory

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Feb 27 14:55:38 UTC 2018


Review at  https://gerrit.osmocom.org/6964

osmo-clean-workspace: fix force checkout of a subdirectory

Instead of the subdirectory, the main repository was
forced checked out.

Change-Id: If23e89872edf48dc5b751b3c069faf585bd6a3ef
---
M scripts/osmo-clean-workspace.sh
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/64/6964/1

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 @@
 # 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

-- 
To view, visit https://gerrit.osmocom.org/6964
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If23e89872edf48dc5b751b3c069faf585bd6a3ef
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list