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

[Bug report] Tinty install fails with "unknown option: branches" #100

Open
ShiromMakkad opened this issue Jan 24, 2025 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@ShiromMakkad
Copy link

Describe the bug

Running tinty install gives this error:

Resolving deltas: 100% (4321/4321), done.
error: unknown option `branches'
usage: git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]
                     [-q | --quiet] [--exit-code] [--get-url] [--sort=<key>]
                     [--symref] [<repository> [<patterns>...]]

    -q, --quiet           do not print remote URL
    --upload-pack <exec>  path of git-upload-pack on the remote host
    -t, --tags            limit to tags
    -h, --heads           limit to heads
    --refs                do not show peeled tags
    --get-url             take url.<base>.insteadOf into account
    --sort <key>          field name to sort on
    --exit-code           exit with exit code 2 if no matching refs are found
    --symref              show underlying ref in addition to the object pointed by it
    -o, --server-option <server-specific>
                          option to transmit

Error: cannot resolve main into a Git SHA1

Expected behavior

Tinty install to succeed

System

Amazon Linux 2

Terminal:

Alacritty

Minimal configuration file

None

Additional context

Looks like the command is failing when you run: git ls-remote --quiet --branches. The --branches flag does not exist on git 2.40.1, but tinty install previously worked. Is there a way to fix this regression?

@ShiromMakkad ShiromMakkad added the bug Something isn't working label Jan 24, 2025
@ShiromMakkad
Copy link
Author

I checked tinty 0.24.0 and it worked. Looks like the issue is from 5cf3897

@JamyGolden
Copy link
Member

Thanks for the PR. Yeah looks like --heads and -h is deprecated and replaced with --branches and -b. I think we can actually just remove that flag. #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants