Skip to content

Issue when pushing a subdir folder with josh-cli #2205

Description

@LMG

Hi all,

I am trying to vendor a repo in a subdir of my monorepo.

My workflow is:

  • clone monorepo
  • clone repo to vendor
  • add monorepo as remote with subdir filter
  • push

I am expecting to get a full, unconnected history of the vendored repo in the monorepo, which I can then merge into the main repo.
Then I can use the normal push and pull workflow to sync changes out and sync new versions.

This doesn't work, as I only get a single commit pushed in the monorepo, as if squash was used.

I attach a test case I couldn't run because of the other issue I raised.

push_subdir.t.txt

Sorry for the extension, windows wouldn't let me upload it ottherwise.

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