Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not checkout ref '...': fatal: invalid reference #253

Open
andry81 opened this issue Mar 11, 2023 · 1 comment
Open

Could not checkout ref '...': fatal: invalid reference #253

andry81 opened this issue Mar 11, 2023 · 1 comment

Comments

@andry81
Copy link

andry81 commented Mar 11, 2023

Sometimes could not checkout ref error happens.

Steps to reproduce:

  1. Create a repo with 1_2_3_20201010 branch (ex: https://github.com/andry81-tests/vcstool-test-A)
  2. Switch to master branch:
    git switch --orphan master
  3. Create .externals:
    repositories:
    
      _externals/1_2_3_20201010:
        type:             git
        url:              https://github.com/andry81-tests/vcstool-test-A
        version:          1_2_3_20201010
  4. Import .externals:
    vcs import < .externals

    === ._externals/1_2_3_20201010 (git) ===
    Could not checkout ref '12320201010': fatal: invalid reference: 12320201010

>git --version
git version 2.24.0.windows.2
@andry81
Copy link
Author

andry81 commented Mar 11, 2023

Seems bug in the yaml parser, because this works:

repositories:

  _externals/1_2_3_20201010:
    type:             git
    url:              https://github.com/andry81-tests/vcstool-test-A
    version:          '1_2_3_20201010'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant