Skip to content
Snippets Groups Projects
Select Git revision
  • move-gl-dropdown
  • improve-table-pagination-spec
  • move-markdown-preview
  • winh-fix-merge-request-spec
  • master default
  • index-namespaces-lower-name
  • winh-single-karma-test
  • 10-3-stable
  • 36782-replace-team-user-role-with-add_role-user-in-specs
  • winh-modal-internal-state
  • tz-ide-file-icons
  • 38869-milestone-select
  • update-autodevops-template
  • jivl-activate-repo-cookie-preferences
  • qa-add-deploy-key
  • docs-move-article-ldap
  • 40780-choose-file
  • 22643-manual-job-page
  • refactor-cluster-show-page-conservative
  • dm-sidekiq-versioning
  • v10.4.0.pre
  • v10.3.0
  • v10.3.0-rc5
  • v10.3.0-rc4
  • v10.3.0-rc3
  • v10.3.0-rc2
  • v10.2.5
  • v10.3.0-rc1
  • v10.0.7
  • v10.1.5
  • v10.2.4
  • v10.2.3
  • v10.2.2
  • v10.2.1
  • v10.3.0.pre
  • v10.2.0
  • v10.2.0-rc4
  • v10.2.0-rc3
  • v10.1.4
  • v10.2.0-rc2
40 results

git

  • Clone with SSH
  • Clone with HTTPS
  • Forked from GitLab.org / GitLab FOSS
    20841 commits behind the upstream repository.
    user avatar
    Timothy Andrew authored
    Note: This feature was developed independently on master while this was
    in review. I've removed the conflicting bits and left the relevant
    additions, mainly a test for `Gitlab::Git::Hook`. The original commit
    message follows:
    
    1. `gitlab-shell` outputs errors to `stderr`, but we weren't using this
       information, prior to this commit. Now we capture the `stderr`, and
       display it in the flash message when branch creation fails.
    
    2. This can be used to display better errors for other git operation
       failures with small tweaks.
    
    3. The return value of `Gitlab::Git::Hook#trigger` is changed from a
       simple `true`/`false` to a tuple of `[status, errors]`. All usages
       and tests have been updated to reflect this change.
    
    4. This is only relevant to branch creation _from the Web UI_, since SSH
       and HTTP pushes access `gitlab-shell` either directly or through
       `gitlab-workhorse`.
    
    5. A few minor changes need to be made on the `gitlab-shell` end. Right
       now, the `stderr` message it outputs is prefixed by "GitLab: ", which
       shows up in our flash message. This is better removed.
    eb16e1e3
    History
    Name Last commit Last update
    ..
    hook.rb