Commit 85a18e28 by David Baumgold

Use latest version of GitPython

parent d1d44e7b
...@@ -22,7 +22,7 @@ try: ...@@ -22,7 +22,7 @@ try:
import yaml import yaml
except ImportError: except ImportError:
print("Error: missing dependencies! Please run this command to install them:") 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) sys.exit(1)
try: try:
...@@ -32,7 +32,16 @@ except ImportError: ...@@ -32,7 +32,16 @@ except ImportError:
JIRA_RE = re.compile(r"\b[A-Z]{2,}-\d+\b") JIRA_RE = re.compile(r"\b[A-Z]{2,}-\d+\b")
PR_BRANCH_RE = re.compile(r"remotes/edx/pr/(\d+)") 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) repo = Repo(PROJECT_ROOT)
git = repo.git 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