diff --git a/vendorsetup.sh b/vendorsetup.sh
index b9a9c6b880ff677eb52f447d6ba00a8e4c8ff60a..25582093704a17d21baff62713f22fd545c4ee3a 100644
--- a/vendorsetup.sh
+++ b/vendorsetup.sh
@@ -89,7 +89,7 @@ __abandon_tree()
      if [[ -f out/lastpatch.projects ]]; then
        local projects=$(cat out/lastpatch.projects)
      else
-       local projects=$(repo forall -c 'echo $REPO_PATH')
+       local projects=$(repo forall -c pwd)
      fi
 
      for p in $projects; do