# fix(repo): trim clone ref once so git clone gets the trimmed value

`c734ce1`→[main](/content/gh/entireio/cli/commits/main/index.html)·toothbrush·2w ago·1 file·+3 added/-1 removed

isEntireCloneURL trimmed for detection but the raw arg was forwarded to
git clone; trim up front so both agree.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

## Sessions

dc663a716dadView transcript

[?\Add Entire Repo Clone CommandClaude Code·Opus 4.8[1m]·2 steps](/content/gh/entireio/cli/session/e77355db-5c1c-4286-94f0-431cf4b77954#timeline-dc663a716dad/index.html)

## Changes

1

- cmd/entire/cli

- Mrepo_clone.go+3/-1

```
87 unmodified lines

88
89
90
91
91
92
93
94
95
96

87 unmodified lines

Args: cobra.RangeArgs(1, 2),
		RunE: func(cmd *cobra.Command, args []string) error {
			cmd.SilenceUsage = true;
			ref := args[0];
			// Trim once up front so the entire:// detection and the value forwarded
			// to git clone agree (the shorthand path trims inside parseMirrorCloneRef).
			ref := strings.TrimSpace(args[0]);
			var targetDir string;
			if len(args) > 1 {
				targetDir = args[1];
```

Mcmd/entire/cli/repo_clone.go+3/-1
