[Windows] Can't clone/checkout the latest main branch
Categories
(Fenix :: General, defect, P2)
Tracking
(Not tracked)
People
(Reporter: cmuresan, Assigned: gl)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Steps to reproduce
- Open a Command Prompt window.
- Navigate to an empty folder.
- Clone the Fenix repo using the following command
git clone https://github.com/mozilla-mobile/fenix
. - Observe the output.
Expected behaviour
- No error are displayed after the clone command finishes.
Actual behaviour
- A "fatal: unable to checkout working tree" error is displayed.
Additional information
- The issue is also reproducible when trying to checkout the
main
branch from a different one. But in this case, two files are marked as problematic. - The issue is not reproducible when cloning the repo using macOS.
- The last good changeset that I can checkout is e5169dd61feef463b51a9742d3b3b76653401a8b.
- The first bad changeset that shows this issue is 4cfa07ba63035ac92cff39f35f900bc06fcc6de5.
@Gabriel, based on these two mentions, could you please take a look at this issue?
Attached a screen recording:
Assignee | ||
Comment 1•1 year ago
|
||
My running assumption is that Windows doesn't like the quotation marks in the file name in https://github.com/mozilla-mobile/fenix/blob/main/docs/%22Secret-settings%22-debug-menu-instructions.md. A lot more commits have landed since so I am wondering if this was only happening because the last commit was this wiki commit and if this is this still reproducible?
Reporter | ||
Comment 2•1 year ago
|
||
Hey @Gabriel, thanks for the quick reply!
Here are a couple of things I tried:
- Tried cloning the repo in a new, empty folder, but I was hit by the following error
error: invalid path 'docs/"Secret-settings"-debug-menu-instructions.md'
fatal: unable to checkout working tree
- Cloned the
releases_v110.0.0
branch and tried to checkout the main branch usinggit checkout main
, but I get this errorerror: invalid path 'docs/"Secret-settings"-debug-menu-instructions.md'
error: invalid path 'docs/Telemetry:-implementation,-reviews,-renewals.md'
- I get a similar error as the above when trying to use the Android Studio UI to checkout the
main
branch - The one way that I have managed to get the repo is by downloading it as zip and unpacking it in a folder, but even after this, if I load the project in Android Studio it is not recognized as a git repository and the gradle sync fails
Is there anything else I could try?
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
Thanks, let's try to simplify the filenames here. I suspect it's the quotations (") and colon (:) that is possibly causing your issues on Windows? One way to test this would be for you to rename those files locally and try loading up Android Studio to see if it's still causing the errors.
Comment 4•1 year ago
|
||
The problem is git rather than android studio - so we can't even check out the revision with those filenames, let alone rename them.
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 6•8 months ago
|
||
Reporter | ||
Comment 7•7 months ago
|
||
Marking this issue as Verified as it's no longer reproducible.
Description
•