[Buildbot-commits] [buildbot/buildbot] 6965c6: tryclient: Fix off-by-one error when finding curre...

GitHub noreply at github.com
Wed Oct 16 20:19:28 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/buildbot/buildbot
  Commit: 6965c6f8268158b155b98591dbcacd66125a453a
      https://github.com/buildbot/buildbot/commit/6965c6f8268158b155b98591dbcacd66125a453a
  Author: Robin Sonefors <robin.sonefors at op5.com>
  Date:   2013-10-15 (Tue, 15 Oct 2013)

  Changed paths:
    M master/buildbot/clients/tryclient.py

  Log Message:
  -----------
  tryclient: Fix off-by-one error when finding current git branch

Git branches' complete names follow the form "refs/heads/<branchname>".
Branchnames may contain additional slashes. Therefore, we need to split
up to two times (three pieces) if the last piece is to contain the
complete branch name.

Without this patch, when the branch "dev/newstuff"
("refs/heads/dev/newstuff", to be exact) has the remote "origin", it
would get mangled into "origin/newstuff" - as that's not the same
branch, the try job would fail.


  Commit: 1b4b68fdf9416cf00e1c348c3a899a2b160bb01f
      https://github.com/buildbot/buildbot/commit/1b4b68fdf9416cf00e1c348c3a899a2b160bb01f
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2013-10-16 (Wed, 16 Oct 2013)

  Changed paths:
    M master/buildbot/clients/tryclient.py

  Log Message:
  -----------
  Merge branch 'master' of git://github.com/ozamosi/buildbot


Compare: https://github.com/buildbot/buildbot/compare/aef7f211dd07...1b4b68fdf941


More information about the Commits mailing list