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

fix gm clone of empty repo #205

Merged
merged 3 commits into from
Dec 6, 2024
Merged

fix gm clone of empty repo #205

merged 3 commits into from
Dec 6, 2024

Conversation

amtoine
Copy link
Owner

@amtoine amtoine commented Dec 6, 2024

the error before

warning: You appear to have cloned an empty repository.
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Error: nu::shell::access_beyond_end

  × Row number too large (empty content).
    ╭─[/home/amtoine/.local/share/nupm/modules/nu-git-manager/git/repo.nu:24:44]
 23 │     let repo = $repo | default (pwd)
 24 │     (^git -C $repo rev-list HEAD | lines | last)
    ·                                            ──┬─
    ·                                              ╰── index too large (empty content)
 25 │ }
    ╰────

the cloning now

warning: You appear to have cloned an empty repository.
it appears you have cloned an empty repository
creating an 'init' commit
[main (root-commit) 8803d51] init
updating cache... done

@amtoine amtoine added fix A fix for a bug core Related to the main `nu-git-manager` module labels Dec 6, 2024
@amtoine amtoine changed the title fix clone empty repo fix gm clone of empty repo Dec 6, 2024
@amtoine
Copy link
Owner Author

amtoine commented Dec 6, 2024

same as in #200, i'll merge this to move on and because the "doc" pipeline is green.

@amtoine amtoine merged commit e0adb9e into main Dec 6, 2024
2 of 5 checks passed
@amtoine amtoine deleted the fix-clone-empty-repo branch December 6, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Related to the main `nu-git-manager` module fix A fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant