sabinadams/aurora

Cannot fork and clone

Closed this issue · 2 comments

When cloning my fork to my local computer, getting:

Cloning into 'aurora'...
remote: Enumerating objects: 1094, done.
remote: Counting objects: 100% (826/826), done.
remote: Compressing objects: 100% (642/642), done.
remote: Total 1094 (delta 525), reused 380 (delta 155), pack-reused 268
Receiving objects: 100% (1094/1094), 637.41 KiB | 5.40 MiB/s, done.
Resolving deltas: 100% (666/666), done.
error: invalid path 'src/tests/schemas/feature-specific/model-fields/model-field-?.prisma'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

If I run git status, I get:

Click to expand
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        deleted:    .github/ISSUE_TEMPLATE/bug_report.md
        deleted:    .github/ISSUE_TEMPLATE/feature_request.md
        deleted:    .github/dependabot.yml
        deleted:    .github/workflows/codeql-analysis.yml
        deleted:    .github/workflows/node.js.yml
        deleted:    .github/workflows/npm-publish-github-packages.yml
        deleted:    .gitignore
        deleted:    .prettierignore
        deleted:    .prettierrc
        deleted:    README.md
        deleted:    aurora.config.json
        deleted:    generated.prisma
        deleted:    jest.config.js
        deleted:    lib/aurora.d.ts
        deleted:    lib/aurora.js
        deleted:    lib/functions/combineModels.d.ts
        deleted:    lib/functions/combineModels.js
        deleted:    lib/functions/getAuroraConfigJson.d.ts
        deleted:    lib/functions/getAuroraConfigJson.js
        deleted:    lib/functions/index.d.ts
        deleted:    lib/functions/index.js
        deleted:    lib/functions/parseSchema.d.ts
        deleted:    lib/functions/parseSchema.js
        deleted:    lib/functions/renderer.d.ts
        deleted:    lib/functions/renderer.js
        deleted:    lib/functions/test.d.ts
        deleted:    lib/functions/test.js
        deleted:    lib/functions/util.d.ts
        deleted:    lib/functions/util.js
        deleted:    lib/functions/writeSchema.d.ts
        deleted:    lib/functions/writeSchema.js
        deleted:    lib/helpers/CustomParsers/datasource-fields.d.ts
        deleted:    lib/helpers/CustomParsers/datasource-fields.js
        deleted:    lib/helpers/CustomParsers/generator-fields.d.ts
        deleted:    lib/helpers/CustomParsers/generator-fields.js
        deleted:    lib/helpers/CustomParsers/model-fields.d.ts
        deleted:    lib/helpers/CustomParsers/model-fields.js
        deleted:    lib/helpers/CustomParsers/parse-blocks.d.ts
        deleted:    lib/helpers/CustomParsers/parse-blocks.js
        deleted:    lib/helpers/combineModels.d.ts
        deleted:    lib/helpers/combineModels.js
        deleted:    lib/helpers/expandGlobPatterns.d.ts
        deleted:    lib/helpers/expandGlobPatterns.js
        deleted:    lib/helpers/getAuroraConfigJson.d.ts
        deleted:    lib/helpers/getAuroraConfigJson.js
        deleted:    lib/helpers/getModelFieldIndexes.d.ts
        deleted:    lib/helpers/getModelFieldIndexes.js
        deleted:    lib/helpers/getModelFieldMappings.d.ts
        deleted:    lib/helpers/getModelFieldMappings.js
        deleted:    lib/helpers/index.d.ts
        deleted:    lib/helpers/index.js
        deleted:    lib/helpers/parseModels.d.ts
        deleted:    lib/helpers/parseModels.js
        deleted:    lib/helpers/parseSchema.d.ts
        deleted:    lib/helpers/parseSchema.js
        deleted:    lib/helpers/renderer.d.ts
        deleted:    lib/helpers/renderer.js
        deleted:    lib/helpers/writeSchema.d.ts
        deleted:    lib/helpers/writeSchema.js
        deleted:    lib/index.d.ts
        deleted:    lib/index.js
        deleted:    lib/models/AuroraConfig.type.d.ts
        deleted:    lib/models/AuroraConfig.type.js
        deleted:    lib/models/ModelFields.type.d.ts
        deleted:    lib/models/ModelFields.type.js
        deleted:    lib/models/ModelIndex.type.d.ts
        deleted:    lib/models/ModelIndex.type.js
        deleted:    lib/models/ModelMappings.type.d.ts
        deleted:    lib/models/ModelMappings.type.js
        deleted:    lib/models/SchemaInformation.type.d.ts
        deleted:    lib/models/SchemaInformation.type.js
        deleted:    lib/models/index.d.ts
        deleted:    lib/models/index.js
        deleted:    lib/models/util.d.ts
        deleted:    lib/models/util.js
        deleted:    lib/tests/aurora.test.d.ts
        deleted:    lib/tests/aurora.test.js
        deleted:    lib/tests/combineModels.test.d.ts
        deleted:    lib/tests/combineModels.test.js
        deleted:    lib/tests/getModelFieldIndexes.test.d.ts
        deleted:    lib/tests/getModelFieldIndexes.test.js
        deleted:    lib/tests/helpers/mockConfigFetcher.d.ts
        deleted:    lib/tests/helpers/mockConfigFetcher.js
        deleted:    lib/tests/helpers/readFile.d.ts
        deleted:    lib/tests/helpers/readFile.js
        deleted:    lib/tests/parseSchema.test.d.ts
        deleted:    lib/tests/parseSchema.test.js
        deleted:    lib/tests/renderer.test.d.ts
        deleted:    lib/tests/renderer.test.js
        deleted:    lib/util/CONSTANTS.d.ts
        deleted:    lib/util/CONSTANTS.js
        deleted:    package-lock.json
        deleted:    package.json
        deleted:    prisma/schema.prisma
        deleted:    prisma/test.prisma
        deleted:    src/aurora.ts
        deleted:    src/helpers/CustomParsers/datasource-fields.ts
        deleted:    src/helpers/CustomParsers/generator-fields.ts
        deleted:    src/helpers/CustomParsers/model-fields.ts
        deleted:    src/helpers/CustomParsers/parse-blocks.ts
        deleted:    src/helpers/combineModels.ts
        deleted:    src/helpers/expandGlobPatterns.ts
        deleted:    src/helpers/getAuroraConfigJson.ts
        deleted:    src/helpers/index.ts
        deleted:    src/helpers/parseModels.ts
        deleted:    src/helpers/parseSchema.ts
        deleted:    src/helpers/renderer.ts
        deleted:    src/helpers/writeSchema.ts
        deleted:    src/index.ts
        deleted:    src/models/AuroraConfig.type.ts
        deleted:    src/models/ModelFields.type.ts
        deleted:    src/models/ModelIndex.type.ts
        deleted:    src/models/ModelMappings.type.ts
        deleted:    src/models/SchemaInformation.type.ts
        deleted:    src/models/index.ts
        deleted:    src/tests/aurora.test.ts
        deleted:    src/tests/combineModels.test.ts
        deleted:    src/tests/helpers/mockConfigFetcher.ts
        deleted:    src/tests/helpers/readFile.ts
        deleted:    src/tests/parseSchema.test.ts
        deleted:    src/tests/renderer.test.ts
        deleted:    src/tests/schemas/duplicates/schema.prisma
        deleted:    src/tests/schemas/duplicates/user.prisma
        deleted:    src/tests/schemas/feature-specific/datasource/datasource-env-url.prisma
        deleted:    src/tests/schemas/feature-specific/datasource/datasource-url.prisma
        deleted:    src/tests/schemas/feature-specific/enums/enum-single-letter.prisma
        deleted:    src/tests/schemas/feature-specific/enums/enum.prisma
        deleted:    src/tests/schemas/feature-specific/generators/generator-binary-env.prisma
        deleted:    src/tests/schemas/feature-specific/generators/generator-custom.prisma
        deleted:    src/tests/schemas/feature-specific/generators/generator-dupe-1.prisma
        deleted:    src/tests/schemas/feature-specific/generators/generator-dupe-2.prisma
        deleted:    src/tests/schemas/feature-specific/generators/generator.prisma
        deleted:    src/tests/schemas/feature-specific/generators/multipleGenerators.prisma
        deleted:    src/tests/schemas/feature-specific/generators/noGenerators.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-?.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@db.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@default-0.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@default-map.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@default-value.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@default.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@id-length.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@id-map.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@id-sort.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@id.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@ignore.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@map-name.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@map.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@relation-map.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@relation-name.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@relation-ondelete.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@relation-onupdate.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@relation-unnamed.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@relation.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@unique-length.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@unique-map.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@unique-sort.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@unique.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-@updatedAt.prisma
        deleted:    src/tests/schemas/feature-specific/model-fields/model-field-[].prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@fulltext.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@id-fields.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@id-map.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@id-name.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@id.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@ignore.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@index-fields.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@index-map.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@index-name.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@index.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@map-name.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@map.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@unique-fields.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@unique-map.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@unique-name.prisma
        deleted:    src/tests/schemas/feature-specific/models/model-@@unique.prisma
        deleted:    src/tests/schemas/feature-specific/models/model.prisma
        deleted:    src/tests/schemas/glob-test/enums/environment.prisma
        deleted:    src/tests/schemas/glob-test/enums/test.prisma
        deleted:    src/tests/schemas/glob-test/models/person.prisma
        deleted:    src/tests/schemas/glob-test/models/user.prisma
        deleted:    src/tests/schemas/glob-test/providers/datasource.prisma
        deleted:    src/tests/schemas/glob-test/providers/generator.prisma
        deleted:    src/tests/schemas/glob-test/providers/secondGenerator.prisma
        deleted:    src/tests/schemas/parseSchema.prisma
        deleted:    src/util/CONSTANTS.ts
        deleted:    tsconfig.json

Desktop

  • Git: Version 2.35.1.windows.2
  • OS: Windows 10 Version 19044.152
  • Latest commit: 13ea9f1

Things I've tried:

  1. Deleting my forked repo and re-forking
  2. Running git restore --source=HEAD :/ I get:
    • error: invalid path 'src/tests/schemas/feature-specific/model-fields/model-field-?.prisma'

I believe this is because ? is an invalid character in file names on windows.

Not sure why this was closed? Issue is still occuring

I'm actually not sure why this was closed, my apologies.

I'll get this one fixed up today. I had looked into it and figured it out already.

Thanks for following up with it!