Skip to main content
← Back to list
01Issue
BugShippedSwamp CLIPublic
Assigneesstack72

Relationships

#1701 @swamp/git branch and push methods fail data naming when branch contains '/'

Opened by dkliban · 8/18/2026· Shipped 8/18/2026

Summary

The branch and push methods on @swamp/git fail with a data-naming validation error when the git branch name contains / (e.g. issue-7988/default-content-guard).

The git operation itself succeeds, but swamp rejects the data output because the branch name is used directly as the data name, which triggers the path-traversal guard:

Data name must not contain '..', '/', '\\', or null bytes (path traversal)

Steps to Reproduce

swamp model @"@swamp/git" method run branch <model> \
  --input name=feature/my-branch --input create=true --input startPoint=main

swamp model @"@swamp/git" method run push <model> \
  --input branch=feature/my-branch --input remote=origin

Both commands complete the git operation but exit with code 1 due to the data name validation error.

Expected Behavior

The data name should sanitize / characters (e.g. replace with - or _) so that branch names with slashes — a very common git convention — work without errors.

Actual Behavior

Exit code 1 with the path-traversal validation error. The git operation succeeds silently but the method is reported as failed.

Environment

  • swamp version: 20260801
  • Extension: @swamp/git
  • OS: Fedora 43 (Linux 7.0.12)

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

Environment

  • Extension: @swamp/git@2026.08.07.1
  • swamp: 20260801.231848.0-sha.6241c8da
  • OS: linux (x86_64)
  • Deno: 2.8.3
  • Shell: /bin/bash
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

8/18/2026, 2:17:00 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack728/18/2026, 1:56:12 AM
Editable. Press Enter to edit.

stack72 commented 8/18/2026, 2:17:09 AM

Thanks @dkliban for reporting this! The fix has been merged and a release is on its way. We appreciate your contribution to swamp.

Sign in to post a ripple.