Changeset 260426 in webkit


Ignore:
Timestamp:
Apr 21, 2020 6:26:37 AM (4 years ago)
Author:
Philippe Normand
Message:

[Flatpak SDK] Silence git stderr output
https://bugs.webkit.org/show_bug.cgi?id=210789

Reviewed by Sergio Villar Senin.

  • flatpak/flatpakutils.py:

(WebkitFlatpak.is_branch_build): Don't display git errors, usually
emitted when operating on a SVN checkout.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r260419 r260426  
     12020-04-21  Philippe Normand  <pnormand@igalia.com>
     2
     3        [Flatpak SDK] Silence git stderr output
     4        https://bugs.webkit.org/show_bug.cgi?id=210789
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        * flatpak/flatpakutils.py:
     9        (WebkitFlatpak.is_branch_build): Don't display git errors, usually
     10        emitted when operating on a SVN checkout.
     11
    1122020-04-21  Philippe Normand  <pnormand@igalia.com>
    213
  • trunk/Tools/flatpak/flatpakutils.py

    r260365 r260426  
    560560    def is_branch_build(self):
    561561        try:
    562             rev_parse = subprocess.check_output(("git", "rev-parse", "--abbrev-ref", "HEAD"))
     562            with open(os.devnull, 'w') as devnull:
     563                rev_parse = subprocess.check_output(("git", "rev-parse", "--abbrev-ref", "HEAD"), stderr=devnull)
    563564        except subprocess.CalledProcessError:
     565            # This is likely not a git checkout.
    564566            return False
    565567        git_branch_name = rev_parse.decode("utf-8").strip()
Note: See TracChangeset for help on using the changeset viewer.