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

Declutter Git step log output #839

Merged
merged 3 commits into from
Jul 26, 2021
Merged

Declutter Git step log output #839

merged 3 commits into from
Jul 26, 2021

Commits on Jul 21, 2021

  1. Omit warnings in Git+SSH use cases

    Add option flag to only show errors to keep the output brief.
    HeavyWombat committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    8af6906 View commit details
    Browse the repository at this point in the history
  2. Add Tekton related .docker to base image

    There is a misleading message in the Git step that is cause by Tekton
    assuming to find a specific directory in the container image:
    ```
    2021/07/21 13:36:04 warning: unsuccessful cred copy: ".docker"
      from "/tekton/creds" to "/": unable to create destination directory:
      mkdir /.docker: permission denied
    ```
    
    Add empty `.docker` directory with to avoid the warning.
    HeavyWombat committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    cb72c99 View commit details
    Browse the repository at this point in the history
  3. Avoid misleading .ssh directory message

    When using the Git step with a SSH Git URL, a misleading message is
    returned in case the `git` command fails, e.g. wrong URL.
    ```
    Could not create directory '/.ssh'.
    Failed to add the host to the list of known hosts (/.ssh/known_hosts).
    ERROR: Repository not found.
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    ```
    
    Add empty `.ssh` directory to avoid the misleading message.
    HeavyWombat committed Jul 21, 2021
    Configuration menu
    Copy the full SHA
    23cc322 View commit details
    Browse the repository at this point in the history