Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-4057

Git 'commit' fails when PAT is configured (because user name and email are not set)

XMLWordPrintable

    • False
    • None
    • False
    • Release Notes
    • +
    • Hide
      = Git configuration automatically retrieves user data

      With this update, if your organization uses OAuth or you have set up a personal access token (PAT), Git configuration automatically retrieves the correct user data. This way, you can run `git commit` without needing to configure Git first.

      [IMPORTANT]
      ====
      This update is not available for Bitbucket servers with a PAT setup.
      ====
      Show
      = Git configuration automatically retrieves user data With this update, if your organization uses OAuth or you have set up a personal access token (PAT), Git configuration automatically retrieves the correct user data. This way, you can run `git commit` without needing to configure Git first. [IMPORTANT] ==== This update is not available for Bitbucket servers with a PAT setup. ====
    • Enhancement
    • Done
    • Hide

      Not sure about is this possible workaround, but if to perform this command - it worked and I was able to successfully commit and push:

      git config --global user.name "admin"
      
      Show
      Not sure about is this possible workaround, but if to perform this command - it worked and I was able to successfully commit and push: git config --global user.name "admin"

      Description of problem:

      Git 'commit' command has wrong behavior when a factory is launched using git provider:
      – public/private repositories with configured Personal Access Token,
      – public repository without any PAT/OAuth configuration,
      -- public repository with setup OAuth and user refused:

      Prerequisites:

      -DS 3.5.0.RC-02-12
      (Index image v4.10: brew.registry.redhat.io/rh-osbs/iib:430617)
      (Index image v4.12: brew.registry.redhat.io/rh-osbs/iib:430678)
      -bitbucket server with test repository available to launch a factory
      -configured Personal Access Token

      Steps to Reproduce

      -Login to DS as usual user(without OCP cluster admin right)
      -public repository without any PAT/OAUth or private/public with setup Personal Access Token, etc.(see the Description)
      -launch a factory
      -do changes and stage them
      -try git commit

      Actual results:

      there is appeared a warning pop up

      Expected results:

      local commit is always possible

      Reproducibility:

      Always

              abazko Anatolii Bazko
              oshmarai Shmaraiev Oleksandr
              Shmaraiev Oleksandr Shmaraiev Oleksandr
              Jana Vrbkova Jana Vrbkova
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: