@feigi/fleet-ctl 3.29.1 → 3.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feigi/fleet-ctl",
3
- "version": "3.29.1",
3
+ "version": "3.29.3",
4
4
  "description": "Agent fleet: run-team controller, merge bot, PR reviewer, and the ticket pipeline they share",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -888,10 +888,28 @@ wt_counts() {
888
888
  # listing (`$wt_list` empty or unset) skips this question. Counted in shell,
889
889
  # line by line, so the question adds no external command whose failure would
890
890
  # be a new way for a caller to refuse.
891
+ #
892
+ # Trailing slashes and `/.` components come off $1 first, a lone `/` kept:
893
+ # `[ -L "link/" ]` and `[ -L "link/." ]` follow the link and are false, and
894
+ # `worktree link/` is no listing record, so such a spelling would skip both
895
+ # questions above and pass the `-ef` compare.
891
896
  # shellcheck disable=SC2034
892
897
  wt_linkage() {
898
+ while :; do
899
+ case $1 in
900
+ ?*/) set -- "${1%/}" ;;
901
+ ?*/.) set -- "${1%/.}" ;;
902
+ *) break ;;
903
+ esac
904
+ done
893
905
  wt_why=
894
906
  wt_lk_n=0
907
+ # `git -C ""` reads the cwd's own repository, so an empty path is refused
908
+ # here, named, rather than judged as the cwd.
909
+ if [ -z "$1" ]; then
910
+ wt_why="an empty path names no worktree"
911
+ return 1
912
+ fi
895
913
  if [ -n "${wt_list:-}" ]; then
896
914
  # Whole records, one per line (`wt_listing` swapped any newline inside a
897
915
  # path), so equality against `worktree $1` is the path compare, and a path