diff options
Diffstat (limited to 'wf.py')
| -rwxr-xr-x | wf.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1220,7 +1220,7 @@ def cmd_merge(args) -> int: master = config.git_branch(main / ".git") or "master" cfg = config.load_at(start) files = [str(f.relative_to(main)) for f in (cfg.tasks, cfg.archive)] - if git_run(top, "status", "--porcelain").stdout.strip(): + if git_run(top, "status", "--porcelain", "-uall").stdout.strip(): raise Failure("worktree has uncommitted changes: commit them first") if not branch and not unmerged_count(top, master): # after a merge: notes / follow-ups written since → bookkeeping commit only @@ -1271,7 +1271,7 @@ def _push_home(main: Path) -> bool: def _dirty_outside(top: Path, keep: list[Path]) -> list[str]: """Uncommitted paths of the repo at `top` not under any of `keep` (absolute paths).""" stray = [] - for line in git_run(top, "status", "--porcelain").stdout.splitlines(): + for line in git_run(top, "status", "--porcelain", "-uall").stdout.splitlines(): rel = line[3:].split(" -> ")[-1].strip('"').rstrip("/") path = (top / rel).resolve() if not any(path == k or k in path.parents for k in keep): |
