Commit 04714d0d by David Baumgold

Merge pull request #9634 from edx/use-latest-gitpython

Use latest version of GitPython
parents b03ba6f9 85a18e28
......@@ -22,7 +22,7 @@ try:
import yaml
except ImportError:
print("Error: missing dependencies! Please run this command to install them:")
print("pip install path.py requests python-dateutil GitPython==0.3.2.RC1 PyYAML")
print("pip install path.py requests python-dateutil GitPython PyYAML")
sys.exit(1)
try:
......@@ -32,7 +32,16 @@ except ImportError:
JIRA_RE = re.compile(r"\b[A-Z]{2,}-\d+\b")
PR_BRANCH_RE = re.compile(r"remotes/edx/pr/(\d+)")
PROJECT_ROOT = path(__file__).abspath().dirname()
def project_root():
directory = path(__file__).abspath().dirname()
while not (directory / ".git").exists():
directory = directory.parent
return directory
PROJECT_ROOT = project_root()
repo = Repo(PROJECT_ROOT)
git = repo.git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment