-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Checking out multiple branches: fatal: ambiguous argument 'master': unknown revision or path not in the working tree #296
Comments
Update, changing checkout@v2 to checkout@v1 and modifying the run script works: |
If you set |
Updating the readme with this PR |
Will this still require v1 instead of v2? |
@jcopps yes, i was trying v2 and v3, it didn't work, after seeing this comment, i changed to v1 and it works!! |
Why is this issue not being addressed? I cannot switch to v1 since it's not under my control so now I'm stuck. edit: Found a solution:
|
I had similar problem with
i figured out that also works in v3 but i have to add
and this works |
See actions/checkout#296 (comment) for context.
The `Run tests` jobs were broken with bioconda@1ae4126 The problem is that the project uses `fetch-depth: 1` (the default) and thus has no branch history. Using `fetch-depth: 0` would fetch the whole history for **all** branches and tags, which would be unnecessary. Refs: - actions/checkout#296 - actions/checkout#301 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
The `Run tests` jobs were broken with bioconda@1ae4126 The problem is that the project uses `fetch-depth: 1` (the default) and thus has no branch history. Using `fetch-depth: 0` would fetch the whole history for **all** branches and tags, which would be unnecessary. Refs: - actions/checkout#296 - actions/checkout#301 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> (cherry picked from commit e3c24c6)
The `Run tests` jobs were broken with bioconda@1ae4126 The problem is that the project uses `fetch-depth: 1` (the default) and thus has no branch history. Using `fetch-depth: 0` would fetch the whole history for **all** branches and tags, which would be unnecessary. Refs: - actions/checkout#296 - actions/checkout#301 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> (cherry picked from commit e3c24c6)
The `Run tests` jobs were broken with 1ae4126 The problem is that the project uses `fetch-depth: 1` (the default) and thus has no branch history. Refs: - actions/checkout#296 - actions/checkout#301 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --------- Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
…out doesn't fetch all tags. Added fetch-depth: 0. actions/checkout#296
…out doesn't fetch all tags. Added fetch-depth: 0. actions/checkout#296
- Add a GitHub Actions workflow to validate commits with commitlint - set fetch-depth to 0 - based on actions/checkout#296
- Add a GitHub Actions workflow to validate commits with commitlint - set fetch-depth to 0 - based on actions/checkout#296
Hi Checkout team,
I'm trying to checkout both the PR branch & master so diffs can be run on the two and only modified files are linted. This returns a fatal error because master is not recognized. I think this PR (#155) addresses the issue, but I'm not sure.
Is there a way to hack around this in the meantime? Thank you!
Config
The text was updated successfully, but these errors were encountered: