summaryrefslogtreecommitdiff
path: root/tools/patman/project.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/patman/project.py')
-rw-r--r--tools/patman/project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/project.py b/tools/patman/project.py
index 2dfc303729b..4459042b5d4 100644
--- a/tools/patman/project.py
+++ b/tools/patman/project.py
@@ -6,7 +6,7 @@ import os.path
from patman import gitutil
-def DetectProject():
+def detect_project():
"""Autodetect the name of the current project.
This looks for signature files/directories that are unlikely to exist except
@@ -16,7 +16,7 @@ def DetectProject():
The name of the project, like "linux" or "u-boot". Returns "unknown"
if we can't detect the project.
"""
- top_level = gitutil.GetTopLevel()
+ top_level = gitutil.get_top_level()
if os.path.exists(os.path.join(top_level, "include", "u-boot")):
return "u-boot"