gabrie30 / ghorg

Quickly clone an entire org/users repositories into one directory - Supports GitHub, GitLab, Bitbucket, and more 🐇🥚
Apache License 2.0
1.59k stars 167 forks source link

Add more logging with enabled debug mode #408

Closed fey closed 6 months ago

fey commented 6 months ago

Is your feature request related to a problem? Please describe. I have issues with downloading repositories inside docker image. I dont know what is problem - with permissions, ssh or something else..

Describe the solution you'd like

Add more output from git with enabled debug

Describe alternatives you've considered

Additional context Output with enabled debug:

------------- GIT DEBUG -------------
(exec.Cmd) /usr/bin/git clone git@gitlab.hexlet.io:hexlethq/boilerplates/java_example_user_project.git /tmp/hexlethq/boilerplates/java_example_user_project

============ Issues ============

Problem trying to clone Repo: git@gitlab.hexlet.io:hexlethq/boilerplates/go_example_project.git Error: exit status 128
...
gabrie30 commented 6 months ago

As far as gits error message on clones I believe we already return as much information as we can. Git has very vague error messages unfortunately.

fey commented 6 months ago

When I used a Docker container, I ran into access issues on the file system. Unfortunately ghorg did not display this information and I had to manually run git clone to see what the problem was. Is there any way to output this kind of information when using ghorg? :thinking:

gabrie30 commented 6 months ago

@fey I added some more logging in the git commands if you wanted to try it out

fey commented 6 months ago

Thank you, it works well!