Skip to main content
← Back to list
01Issue
FeatureClosedSwamp CLIPublic
AssigneesNone

Relationships

#1752 @swamp/git fetch: support local path as remote

Opened by dkliban · 8/20/2026

The fetch method currently only resolves named remotes via the remote arg. It would be useful to support a local filesystem path (e.g. a workspace clone in /tmp) as the fetch source.

Use case: The upgrade-deps workflow creates an ephemeral workspace clone, bumps dependencies and commits there. To push the branch, it needs to fetch the workspace branch into the main local checkout first. Today this requires a command/shell workaround:

git -C /path/to/local/repo fetch /tmp/workspace branch:branch

Proposed: Accept a path or url argument on fetch that is passed directly to git fetch instead of resolving a named remote. This would allow workflows to stay within typed model methods instead of falling back to shell commands.

Upstream repository: https://github.com/swamp-club/swamp-extensions

Environment

  • Extension: @swamp/git@2026.08.18.2
  • swamp: 20260801.231848.0-sha.6241c8da
  • OS: linux (x86_64)
  • Deno: 2.8.3
  • Shell: /bin/bash
02Bog Flow
OPENTRIAGEDIN PROGRESSCLOSED

Closed

8/20/2026, 7:19:38 PM

No activity in this phase yet.

03Sludge Pulse
Editable. Press Enter to edit.

dkliban commented 8/20/2026, 6:55:00 PM

Closing — the better approach is to configure remotes directly in the ephemeral workspace so it can push to GitHub without an intermediate fetch-to-local hop. This eliminates the need for local-path fetch support in this use case.

Sign in to post a ripple.