We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eec6bd9 + b79a4bf commit 8a8b845Copy full SHA for 8a8b845
src/bootstrap/bootstrap.py
@@ -1193,16 +1193,16 @@ def get_latest_commit(self):
1193
return "<commit>"
1194
cmd = [
1195
"git",
1196
- "-C",
1197
- repo_path,
1198
"rev-list",
1199
"--author",
1200
author_email,
1201
"-n1",
1202
"HEAD",
1203
]
1204
try:
1205
- commit = subprocess.check_output(cmd, universal_newlines=True).strip()
+ commit = subprocess.check_output(
+ cmd, universal_newlines=True, cwd=repo_path
+ ).strip()
1206
return commit or "<commit>"
1207
except subprocess.CalledProcessError:
1208
0 commit comments