GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Github clone in project should work from parent directory · Issue #2852 · pingdotgg/t3code

Github clone in project should work from parent directory #2852

New issue
Copy link
New issue
Copy link
Closed
#5989
Closed
Github clone in project should work from parent directory#2852
#5989
Copy link

Description

@sHtev
sHtev
opened on May 28, 2026
Issue body actions

This may be opinion rather than a bug (hence not submitted as a bug report), but when I was creating a new project by cloning from a GitHub repo, the UI wanted the clone directory to already exist (or at least that's how I interpreted the error message).

I would expect this to work like CLI git clone works, and to create the directory the repo files (and presumably the project files - this is my first project) live in as part of the clone operation. I.e., if I want a project cloned from sHtev/myrepo to live under ~/Code, I should be able to select that directory in the Clone window and my project to clone into ~/Code/myrepo. If this is the intent, then maybe this is a bug (Intel Mac user here).

Activity

  1. sHtev commented on May 28, 2026

    @sHtev
    sHtev
    on May 28, 2026
    Author
    More actions

    I retried this and created an empty project directory to clone into and got a gh error message:
    Source control repository operation cloneRepository failed for unknown: Destination path already exists and is not empty.

    It seems like a) there should be a better user-facing message for the underlying command failing and b), the actual path selected is not being passed to gh(?) under-the-hood. If I find time I may file a proper bug report instead.

  2. juliusmarminge commented on May 29, 2026

    @juliusmarminge
    juliusmarminge
    on May 29, 2026
    Member
    More actions

    you're supposed to put in the full path:

    CleanShot.2026-05-29.at.16.14.56.mp4

    open to adding support for cloning with inferred dir as another alternative

  3. inayayousfi commented on Aug 10, 2026

    @inayayousfi
    inayayousfi
    on Aug 10, 2026
    Contributor
    More actions

    PR #5989 implements this.

    The clone step now proposes the selected folder plus the repository folder, so picking ~/Code for sHtev/myrepo proposes ~/Code/myrepo and the "Destination path already exists and is not empty" error goes away.

    A few niceties that came out of it:

    • It works from a provider lookup (owner/repo, including Azure DevOps org/project/repo) and from any pasted git URL: https://host/owner/repo.git, https://host/owner/repo, git@host:owner/repo.git, ssh://git@host:22/owner/repo.git, with or without a trailing slash, a query or a fragment. The .git suffix is stripped.
    • The repository name stays pinned while you browse: clicking Documents gives ~/Documents/myrepo, so you keep picking the parent folder and never retype the name.
    • The folder list ignores the pinned name, so it stays populated. Text you type yourself still filters, and still wins.
    • A link that names no repository, like https://github.com/ or ssh://git@host:22, proposes nothing and falls back to the browsed folder.
    • Web and mobile both do it.
  4. pingdotgg
    locked and limited conversation to collaborators on Aug 15, 2026
  5. juliusmarminge
    converted this issue into a discussion #7037 on Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.