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.
1 parent 372671d commit 7ed8d68Copy full SHA for 7ed8d68
src/git_autograder/branch.py
@@ -28,19 +28,15 @@ def name(self) -> str:
28
@property
29
def reflog(self) -> List[GitAutograderReflogEntry]:
30
output = self.branch.repo.git.reflog("show", self.name).splitlines()
31
- print(output)
32
# We need to dynamically configure the regex
33
regex_str = (
34
"^([a-f0-9]+)(?: \\(.*\\))? " + self.name + "@\\{(\\d+)\\}: ([^:]+): (.+)$"
35
)
36
reflog_pattern = re.compile(regex_str)
37
entries = []
38
for line in output:
39
- print(reflog_pattern)
40
- print(line)
41
groups = reflog_pattern.match(line)
42
if groups:
43
- print(groups)
44
sha, index, action, message = groups.groups()
45
entries.append(
46
GitAutograderReflogEntry(
0 commit comments