1. 30 Jun, 2022 2 commits
  2. 19 Apr, 2022 5 commits
    • Zuul's avatar
      e2382507
    • Zuul's avatar
      Merge "Publish documentation at every release" · 6c9842b6
      Zuul authored
      6c9842b6
    • Jeremy Stanley's avatar
      Add release note for OSX Git version parsing fix · 521f8fd4
      Jeremy Stanley authored
      Change I40356ee81b98c1210de348e51335a20be48bec1d fixed this, but was
      missing a release note. Also close the story task with this change
      since the other one didn't.
      
      Change-Id: Ia27d930bf0ecefe1c26c00d6a5e93136fd120964
      Task: #45100
      521f8fd4
    • Jeremy Stanley's avatar
      Publish documentation at every release · 43fe34f3
      Jeremy Stanley authored
      We normally publish documentation updates in the promote pipeline,
      using documentation built in the gate. As a result, the published
      docs tend to lag behind release events until the next post-release
      change lands. Run a separate docs build and publish it on release,
      so that release notes and version information included in the
      documentation reflect the most recent tag prior to the next change
      merging (which for stable projects like this one, could be a while).
      Override the tag jobvar to force publication to the branch path
      rather than using a version-specific tree.
      
      Change-Id: Ibf1ecfa0420a3c170beb79c14a9a9ef13fea9046
      Depends-On: https://review.opendev.org/838525
      43fe34f3
    • Clark Boylan's avatar
      Fix get_git_version on OS X · b39c812e
      Clark Boylan authored
      Apparently Apple's `git --version` provides different output than
      Linux's. Improve the version parsing by splitting on all whitespace and
      taking the exact element that should be the version out of that rather
      than relying on the version we want being a suffix of the command
      output.
      
      Story: 2010002
      Change-Id: I40356ee81b98c1210de348e51335a20be48bec1d
      b39c812e
  3. 18 Apr, 2022 2 commits
  4. 12 Apr, 2022 2 commits
    • Ian Wienand's avatar
      Enforce minimum git version · a47f5afb
      Ian Wienand authored
      Id4528209f1cd500afd06e2e61eb5689022251118 introduced a minimum git
      version.  Abstract our existing check and setup a global with the
      local git version for tests.  Add a minimum version check.
      
      Change-Id: I9d1de11269758a453ecc8dde0a4c631d8e762a91
      a47f5afb
    • Zuul's avatar
      Merge "Drop support for Python 3.5" · f545f154
      Zuul authored
      f545f154
  5. 11 Apr, 2022 7 commits
  6. 10 Apr, 2022 2 commits
    • Jeremy Stanley's avatar
      Clean up package metadata · f3438787
      Jeremy Stanley authored
      The author-email and python-requires options are deprecated by
      SetupTools in favor of author_email and setup_requires and trigger
      warnings now, so update them. The license_files option (since its
      introduction) automatically includes LICENSE and AUTHORS if not
      specified, so was always redundant and unnecessary. The warnerrors
      option for PBR was for Sphinx integration, which we don't use any
      longer, and is ignored by modern PBR versions anyway so clean it up
      too.
      
      Change-Id: Ic5d1e17dd4926eea4e5b6fff47295fd8e9eb452d
      f3438787
    • Jonathan Rosser's avatar
      Force use of scp rather than sftp when possible · 5bfaa4a6
      Jonathan Rosser authored and Jeremy Stanley's avatar Jeremy Stanley committed
      OpenSSH has deprecated its use of scp/rcp protocol in favor of SFTP,
      which the embedded Apache mina-sshd in widely-deployed Gerrit
      versions does not yet support. The default officially changed in
      OpenSSH 9.0 (some distributions, such as Fedora and CentOS, switched
      their default behavior to this as early as OpenSSH 8.7 or 8.8),
      leading to a ``subsystem request failed on channel 0`` error during
      commit-msg hook retrieval. Now git-review will attempt to detect
      whether scp's -O option is available to force use of the legacy
      scp/rcp protocol, and apply it if so.
      
      Change-Id: Ib64c03c3e12a3a8390e38f6ca9393db3b3c2a9e3
      5bfaa4a6
  7. 07 Apr, 2022 1 commit
  8. 08 Mar, 2022 1 commit
    • Steve Kowalik's avatar
      Switch to unittest.mock · 1912e685
      Steve Kowalik authored
      Since mock is a backport of the standard library, and we no longer
      support Python 2, we can use the standard library, and drop one external
      dependency.
      
      Change-Id: I798c85f1581f4562908c10cd1b58134cdcb40281
      1912e685
  9. 27 Nov, 2021 3 commits
  10. 23 Nov, 2021 1 commit
  11. 19 Nov, 2021 1 commit
    • Pierre Riteau's avatar
      Fix use of removed --preserve-merges option · 7182166e
      Pierre Riteau authored
      
      
      The --preserve-merges (-p) option was replaced by --rebase-merges (-r).
      This fixes the following error when using git version 2.34.0:
      
          Errors running git rebase -p -i remotes/gerrit/stable/xena
          fatal: --preserve-merges was replaced by --rebase-merges
      
      In order to keep compatibility with git < 2.18.0 we detect the git
      version and use the old --preserve-merges flag when the version is older
      than 2.18.0.
      
      Co-Authored-By: default avatarClark Boylan <clark.boylan@gmail.com>
      Change-Id: I04de3d0f20aa6bafcf746b7706d61dd9b9af296c
      7182166e
  12. 07 Jul, 2021 1 commit
    • Jeremy Stanley's avatar
      Ignore unstaged/uncommitted submodule changes · 6c3f134a
      Jeremy Stanley authored
      When checking for unstaged or uncommitted changes to avoid the test
      rebase (which could cause data loss for users of git.autostash),
      it's still fine if there are unstaged or uncommitted changes in
      submodules since those won't be rebased. Have the git diff
      invocations explicitly ignore submodules, and also add regression
      tests which demonstrate it's working.
      
      This fixes a regression originally introduced by change
      Iabb8387c9db59a7d02ebfd43b688e7bb93d3159f.
      
      Change-Id: I20d602e86537b573ac1f9788221215047a594f83
      6c3f134a
  13. 24 Jun, 2021 1 commit
    • Florian Haas's avatar
      Doc updates for Git "core.hooksPath" option support · 04786cd9
      Florian Haas authored
      Couple of small follow-ups to Id8a3ac464ff75e6d8207f198089f018cc790eca5:
      
      * Fix formatting in the reno (use monospace as applicable).
      * Update "Installation and Configuration" to say that the local hook
        *normally* goes into .git/hooks.
      
      Change-Id: I1b326bdcaed38d3a82a65f944431f3640652dd33
      04786cd9
  14. 21 Jun, 2021 1 commit
    • Florian Haas's avatar
      Support the Git "core.hooksPath" option when dealing with hook scripts · c40eb491
      Florian Haas authored
      Previously, git-review would assume that the Git repository's hook
      directory is .git/hooks, relative to the root of the checkout. This
      assumption breaks if the user has set the core.hooksPath option on the
      repository (or, for that matter, in ~/.gitconfig or /etc/gitconfig).
      
      core.hooksPath can either be set to an absolute path, in which case it
      is to be interpreted as-is, or to a relative path, in which case it
      should be interpreted as relative to the root of the checkout.
      
      Introduce a new convenience function to suss out the correct path, and
      use it in places where the reference to .git/hooks was previously
      hard-coded.
      
      Reference:
      https: //git-scm.com/docs/git-config#Documentation/git-config.txt-corehooksPath
      
      Depends-on: I0f0f44e57a100420d8e6d2eaec7dbb5d77b654af
      Change-Id: Id8a3ac464ff75e6d8207f198089f018cc790eca5
      c40eb491
  15. 17 Jun, 2021 1 commit
    • Jens Harbott's avatar
      Fix nodeset selections for zuul jobs · d0d3da82
      Jens Harbott authored
      We now are using focal nodes by default, so we no longer need to
      explicitly select those, instead we need bionic for py36+py37.
      
      Change-Id: I0f0f44e57a100420d8e6d2eaec7dbb5d77b654af
      d0d3da82
  16. 23 Apr, 2021 2 commits
    • Zuul's avatar
      Merge "Add option for disabling thin pushes" · afda8ece
      Zuul authored
      afda8ece
    • Clark Boylan's avatar
      Install PBR explicitly · ef1a35f4
      Clark Boylan authored
      We do this because easy_install on python3.5 is failing to find pbr. I
      believe this is happening due to pypi's deprecation of non SNI tls
      connections. They report that the version of 3.5 on xenial should be
      able to do SNI but easy_install at least doesn't seem to do so.
      
      Note we restrict this to python>=3 and <=3.5 as python 2.7 had
      backported fixes. Also, this really only helps with unittesting via tox
      as we instruct tox to explicitly install the requirements files before
      creating/installing the package itself. This is the reason we stick this
      in test-requirements.txt rather than requirements.txt.
      
      Change-Id: Iac2c1f4f575de250ed0dba22d33b017322fd7562
      ef1a35f4
  17. 12 Apr, 2021 1 commit
    • Clark Boylan's avatar
      Add option for disabling thin pushes · 39cd763d
      Clark Boylan authored
      There is a long standing issue with C Git pushing to Gerrit and Jgit
      where the occasional push will fail because the negotiated packs are
      missing a tree object. This happens very occasionally but when it does
      it would be nice to be able to point users at an easy workaround.
      Pushing with --no-thin is that workaround.
      
      Note that --no-thin is much less efficient so shouldn't be used by
      default.
      
      This old bug, https://bugs.launchpad.net/git-review/+bug/1332549, has
      details but it seems to affect current C git and Gerrit+Jgit.
      
      Change-Id: Id6ba52a656a14c921acab1b14ef668e6251245da
      39cd763d
  18. 17 Mar, 2021 1 commit
    • Roman Gorshunov's avatar
      Add missing -h to manpage and remove -c from it · 18189abf
      Roman Gorshunov authored
      - Change implementing the -h/--help option did not add corresponding
        manpage entry for it.
      - Change removing the -c/--comaptible option did not remove
        corresponding manpage entry for it.
      Correcting these oversights now.
      
      Task: #41310
      Change-Id: I548e63a778e36db65dd776aaf4e6d6a7fc103c2d
      18189abf
  19. 03 Mar, 2021 1 commit
  20. 02 Mar, 2021 4 commits