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

Fatal error with git directories with out HEAD – or maybe Windows – or maybe both #125

Open
fobf opened this issue Jan 30, 2022 · 5 comments
Labels

Comments

@fobf
Copy link

fobf commented Jan 30, 2022

flutter pub global run peanut

`ProcessException: fatal: Needed a single revision
  Command: git rev-parse --verify --symbolic-full-name HEAD
#0      _throwIfProcessFailed (package:git/src/top_level.dart:39:5)
#1      runGit (package:git/src/top_level.dart:17:5)
<asynchronous suspension>
<asynchronous suspension>
#3      run (package:peanut/src/peanut.dart:37:25)
<asynchronous suspension>
#4      main (file:///D:/dev/flutter/.pub-cache/hosted/pub.dartlang.org/peanut-4.1.1/bin/peanut.dart:55:5)
<asynchronous suspension>`
@kevmoo
Copy link
Owner

kevmoo commented Jan 31, 2022

Ooo! This is a fun one.

You might need to set HEAD locally. See https://stackoverflow.com/a/8840516/39827

git remote set-head origin some_branch

At the same time, I should handle this better. Could also be a windows thing. 🤔

@kevmoo kevmoo changed the title ProcessException: fatal: Needed a single revision Fatal error with git directories with out HEAD – or maybe Windows – or maybe both Jan 31, 2022
@kevmoo kevmoo added the bug label Jan 31, 2022
@fobf
Copy link
Author

fobf commented Feb 1, 2022 via email

@kevmoo
Copy link
Owner

kevmoo commented Feb 1, 2022

likely master or main

@fobf
Copy link
Author

fobf commented Feb 1, 2022 via email

@kevmoo
Copy link
Owner

kevmoo commented Feb 1, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants