Changeset 70640 in webkit


Ignore:
Timestamp:
Oct 27, 2010 6:13:41 AM (14 years ago)
Author:
Adam Roben
Message:

Catch exceptions when checking if we're inside a git working directory

Fixes <http://webkit.org/b/48420> REGRESSION (r70562): test-webkitpy
fails on systems without git installed

Reviewed by Anders Carlsson.

  • Scripts/webkitpy/common/net/credentials.py:

(Credentials._credentials_from_git): Put the call to
Git.in_working_directory inside the try/except since it, too, attempts
to execute git and thus will throw on systems that don't have git
installed.

Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r70629 r70640  
     12010-10-27  Adam Roben  <aroben@apple.com>
     2
     3        Catch exceptions when checking if we're inside a git working directory
     4
     5        Fixes <http://webkit.org/b/48420> REGRESSION (r70562): test-webkitpy
     6        fails on systems without git installed
     7
     8        Reviewed by Anders Carlsson.
     9
     10        * Scripts/webkitpy/common/net/credentials.py:
     11        (Credentials._credentials_from_git): Put the call to
     12        Git.in_working_directory inside the try/except since it, too, attempts
     13        to execute git and thus will throw on systems that don't have git
     14        installed.
     15
    1162010-10-27  Nikolas Zimmermann  <nzimmermann@rim.com>
    217
  • trunk/WebKitTools/Scripts/webkitpy/common/net/credentials.py

    r70562 r70640  
    6060
    6161    def _credentials_from_git(self):
    62         if not Git.in_working_directory(self.cwd):
    63             return (None, None)
    6462        try:
     63            if not Git.in_working_directory(self.cwd):
     64                return (None, None)
    6565            return (Git.read_git_config(self.git_prefix + "username"),
    6666                    Git.read_git_config(self.git_prefix + "password"))
Note: See TracChangeset for help on using the changeset viewer.