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

Add a mode to print git errors #57

Closed
wants to merge 7 commits into from

Conversation

polac24
Copy link
Collaborator

@polac24 polac24 commented Jun 27, 2023

Rehashed #56 without fork-PR

Introducing a mode that prints git output if a command fails.

  • Pass --print_git_errors to enable that mode
  • In the verbose mode is enabled, this argument is redundant (added a warning)

image

To test, invoke git-fastclone [email protected]:githubtraining/hellogitworld.git -b 1111 --print_git_errors which will try to check out to a non-existing 111.

git-fastclone 1.4.2
Cloning hellogitworld to ..../hellogitworld
I, [2023-06-27T12:41:07.545645 #90557]  INFO -- : error: pathspec '1111' did not match any file(s) known to git

@polac24
Copy link
Collaborator Author

polac24 commented Jun 27, 2023

CI to GH actions done in #58

@polac24 polac24 closed this Jun 27, 2023
@polac24 polac24 deleted the bartosz/20230623-fix-error-clone branch February 23, 2024 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant