Defer checking git version until it is needed
Review Request #7405 — Created June 11, 2015 and submitted
Previously, the
gi
t version was checked in the initialization of the
GitClient
SCM Client. However, with systems that do not havegit
installed, this would result in an error being printed thatgit
could
not be found. We now defer determining the installedgit
version
until we need it, which occurs after we are sure thatgit
is
installed.
Ran unit tests.
Removed
git
from my system and ranrbt status
. Without this patch,
an error message was printed. With it applied, there was no error.
- Change Summary:
-
Address Christian's issues.
- Commit:
-
57264e839caac174961af6456a687d96c94dc2d855426cb89ffd902516db833e0a615df29ceab82e
- Diff:
-
Revision 2 (+22 -13)
-
Tool: Pyflakes Processed Files: rbtools/clients/git.py Tool: PEP8 Style Checker Processed Files: rbtools/clients/git.py