kevmoo / peanut.dart

Easily build and deploy your Dart web app to GitHub pages
https://pub.dev/packages/peanut
BSD 3-Clause "New" or "Revised" License
217 stars 32 forks source link

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

Open fobf opened 2 years ago

fobf commented 2 years ago

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 commented 2 years ago

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. 🤔

fobf commented 2 years ago

Sorry, I'm confused what should I write for some_branch ? I think I had an error when I accidentally made a commit to push to flutter repo but I reset it. Still, this error somehow affects me.

пн, 31 янв. 2022 г. в 23:18, Kevin Moore @.***>:

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. 🤔

— Reply to this email directly, view it on GitHub https://github.com/kevmoo/peanut.dart/issues/125#issuecomment-1026220179, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKKN2NMQGZSVRI46756GU3UY34EHANCNFSM5NEUCFKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

kevmoo commented 2 years ago

likely master or main

fobf commented 2 years ago

Wow , thanks 'main' worked for me

On Tue, Feb 1, 2022, 15:36 Dmytro @.***> wrote:

Sorry, I'm confused what should I write for some_branch ? I think I had an error when I accidentally made a commit to push to flutter repo but I reset it. Still, this error somehow affects me.

пн, 31 янв. 2022 г. в 23:18, Kevin Moore @.***>:

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. 🤔

— Reply to this email directly, view it on GitHub https://github.com/kevmoo/peanut.dart/issues/125#issuecomment-1026220179, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKKN2NMQGZSVRI46756GU3UY34EHANCNFSM5NEUCFKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

kevmoo commented 2 years ago

Need to fix that, though!

On Tue, Feb 1, 2022 at 11:38 AM Dmytro K @.***> wrote:

Wow , thanks 'main' worked for me

On Tue, Feb 1, 2022, 15:36 Dmytro @.***> wrote:

Sorry, I'm confused what should I write for some_branch ? I think I had an error when I accidentally made a commit to push to flutter repo but I reset it. Still, this error somehow affects me.

пн, 31 янв. 2022 г. в 23:18, Kevin Moore @.***>:

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. 🤔

— Reply to this email directly, view it on GitHub < https://github.com/kevmoo/peanut.dart/issues/125#issuecomment-1026220179>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABKKN2NMQGZSVRI46756GU3UY34EHANCNFSM5NEUCFKA

. Triage notifications on the go with GitHub Mobile for iOS < https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675

or Android < https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/kevmoo/peanut.dart/issues/125#issuecomment-1027215450, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAEFCTTZZQVUSY5IQZ2VETUZAZDJANCNFSM5NEUCFKA . You are receiving this because you commented.Message ID: <kevmoo/peanut. @.***>