#215 old commits unreachable on deleted files

Open
opened 1 month ago by libBletchley · 1 comments

After doing a git clone https://codeberg.org/crimeflare/cloudflare-tor, it’s possible to do git show 91376f4f8a8749dd2c9aa9d8ad07ab369a9c97a8 to see an old change on a file that had been deleted. But when navigating to that same change using the web UI:

91376f4f8a

It’s a 404 error.

After doing a `git clone https://codeberg.org/crimeflare/cloudflare-tor`, it's possible to do `git show 91376f4f8a8749dd2c9aa9d8ad07ab369a9c97a8` to see an old change on a file that had been deleted. But when navigating to that same change using the web UI: https://codeberg.org/crimeflare/cloudflare-tor/commit/91376f4f8a8749dd2c9aa9d8ad07ab369a9c97a8 It's a 404 error.
libBletchley changed title from old commits unreachable to old commits unreachable on deleted files 1 month ago
ashimokawa commented 1 month ago
Owner

I cannot confirm that the old object is available when doing a clean clone.

$ ~/codeberg$ git clone https://codeberg.org/crimeflare/cloudflare-tor
$ ~/codeberg$ cd cloudflare-tor
$ ~/codeberg/cloudflare-tor$ git show 91376f4f8a8749dd2c9aa9d8ad07ab369a9c97a8
fatal: bad object 91376f4f8a8749dd2c9aa9d8ad07ab369a9c97a8

I suspect someone force-pushed to the repo which removed the commit from history.

You can protect branches from being force pushed to prevent that for the future.

I cannot confirm that the old object is available when doing a clean clone. ``` $ ~/codeberg$ git clone https://codeberg.org/crimeflare/cloudflare-tor $ ~/codeberg$ cd cloudflare-tor $ ~/codeberg/cloudflare-tor$ git show 91376f4f8a8749dd2c9aa9d8ad07ab369a9c97a8 fatal: bad object 91376f4f8a8749dd2c9aa9d8ad07ab369a9c97a8 ``` I suspect someone force-pushed to the repo which removed the commit from history. You can protect branches from being force pushed to prevent that for the future.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.