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

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

90109fc·

toothbrush·3w 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

Changes

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