Skip to content

Diff saved as screenshotDiffs/null, not picked up by upload loop#54

Open
hannesa2 wants to merge 1 commit intoewanmellor:masterfrom
hannesa2:FixNewFiles
Open

Diff saved as screenshotDiffs/null, not picked up by upload loop#54
hannesa2 wants to merge 1 commit intoewanmellor:masterfrom
hannesa2:FixNewFiles

Conversation

@hannesa2
Copy link
Copy Markdown
Contributor

@hannesa2 hannesa2 commented Apr 8, 2026

The bug is clear. $name (line 5, the git-relative path) is always the correct source for the filename — it's never /dev/null The if/else logic is wrong in both directions:

  • When name1=/dev/null (new file): basename "/dev/null" → "null" ❌
  • When name2=/dev/null (deleted file): basename "/dev/null" → also "null" ❌

The bug is clear. $name (line 5, the git-relative path) is always the correct source for the filename — it's never /dev/null. The if/else logic is wrong in both directions:
When name1=/dev/null (new file): basename "/dev/null" → "null" ❌
When name2=/dev/null (deleted file): basename "/dev/null" → also "null" ❌
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant