Error running hero example #3

Closed
opened 2024-02-05 19:34:41 +00:00 by mik-tf · 2 comments
Owner

Issue

I get an error when running the hero example

hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/script3

Error

git repo get: /home/user/code/git.ourworld.tf/threefold_coop/info_threefold_coop
cli execution error: Cannot get branch: /home/user/code/git.ourworld.tf/threefold_coop/info_threefold_coop. Error was freeflowuniverse.crystallib.osal.JobError: Execution failed with code 128

script path:/tmp/execscripts/2024-02-05-14:32:20:618_16f7348a5d4a24f0840224197df518b3.sh

## stdout:
HEAD

## stderr:
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>...]'

Fix?

Any idea how to fix this?

# Issue I get an error when running the hero example ``` hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/script3 ``` # Error ``` git repo get: /home/user/code/git.ourworld.tf/threefold_coop/info_threefold_coop cli execution error: Cannot get branch: /home/user/code/git.ourworld.tf/threefold_coop/info_threefold_coop. Error was freeflowuniverse.crystallib.osal.JobError: Execution failed with code 128 script path:/tmp/execscripts/2024-02-05-14:32:20:618_16f7348a5d4a24f0840224197df518b3.sh ## stdout: HEAD ## stderr: 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>...]' ``` # Fix? Any idea how to fix this?
Author
Owner

It might be because the repo changed from:

git.ourworld.tf/threefold_coop/info_threefold_coop

to

git.ourworld.tf/tfgrid/info_tfgrid

It might be because the repo changed from: > git.ourworld.tf/threefold_coop/info_threefold_coop to > git.ourworld.tf/tfgrid/info_tfgrid
Author
Owner

This was fixed by removing the files in the code directory then re-entering the hero command above:

sudo rm -r /home/user/code/*

It seems the change of directory name caused this. Shouldn't happen with future cloning on fresh install.

This was fixed by removing the files in the code directory then re-entering the hero command above: ``` sudo rm -r /home/user/code/* ``` It seems the change of directory name caused this. Shouldn't happen with future cloning on fresh install.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: tfgrid/info_tfgrid#3
No description provided.