Skip to content

Commit b357218

Browse files
committed
Add logging
1 parent 5038af7 commit b357218

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/git_autograder/branch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,19 @@ def name(self) -> str:
2828
@property
2929
def reflog(self) -> List[GitAutograderReflogEntry]:
3030
output = self.branch.repo.git.reflog("show", self.name).splitlines()
31+
print(output)
3132
# We need to dynamically configure the regex
3233
regex_str = (
3334
"^([a-f0-9]+)(?: \\(.*\\))? " + self.name + "@\\{(\\d+)\\}: ([^:]+): (.+)$"
3435
)
3536
reflog_pattern = re.compile(regex_str)
3637
entries = []
3738
for line in output:
39+
print(reflog_pattern)
40+
print(line)
3841
groups = reflog_pattern.match(line)
3942
if groups:
43+
print(groups)
4044
sha, index, action, message = groups.groups()
4145
entries.append(
4246
GitAutograderReflogEntry(

0 commit comments

Comments
 (0)