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

Git error on whippet generate app #231

Open
RobjS opened this issue Dec 15, 2023 · 2 comments
Open

Git error on whippet generate app #231

RobjS opened this issue Dec 15, 2023 · 2 comments

Comments

@RobjS
Copy link
Contributor

RobjS commented Dec 15, 2023

whippet generate app -d Projects/test
Creating a new whippet application in Projects/test
Downloading and unzipping template file
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>...]'
Checkout failed:

HEADNew whippet app successfully generated at Projects/test
@RobjS
Copy link
Contributor Author

RobjS commented Dec 15, 2023

A git bisect says this error was introduced in 732e8f576e683e4c64495a0ef10fcd0dd85b43a8: 732e8f5

It looks like if (!$target_repo->current_commit()) { isn't returning false, but instead just outputting an error.

@snim2
Copy link
Contributor

snim2 commented Mar 11, 2024

So, the output above ends with New whippet app successfully generated at Projects/test. When I try to reproduce, the error message appears but the app is generated correctly.

Is the request here to suppress the error message?

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

No branches or pull requests

2 participants