Closed Bug 1812298 Opened 1 year ago Closed 8 months ago

[Windows] Can't clone/checkout the latest main branch

Categories

(Fenix :: General, defect, P2)

Desktop
Windows

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: cmuresan, Assigned: gl)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Steps to reproduce

  1. Open a Command Prompt window.
  2. Navigate to an empty folder.
  3. Clone the Fenix repo using the following command git clone https://github.com/mozilla-mobile/fenix.
  4. 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:

  • Screenshot of the CMD output when trying to clone link
  • Screenshot of the Android Studio error when trying to checkout the latest main link
Flags: needinfo?(gl)

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?

Flags: needinfo?(gl)

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 using git checkout main, but I get this error
    • error: 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?

Flags: needinfo?(gl)
Assignee: nobody → gl
Status: NEW → ASSIGNED
Flags: needinfo?(gl)

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.

The problem is git rather than android studio - so we can't even check out the revision with those filenames, let alone rename them.

Priority: -- → P2
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED

Marking this issue as Verified as it's no longer reproducible.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: