|
|
Subscribe / Log in / New account

The risks of embedded bare repositories in Git

The risks of embedded bare repositories in Git

Posted May 1, 2022 18:31 UTC (Sun) by NYKevin (subscriber, #129325)
In reply to: The risks of embedded bare repositories in Git by timon
Parent article: The risks of embedded bare repositories in Git

Yes, I'm aware of that.

I guess my concern is that a user might have a setup like this:

1. The user regularly clones untrusted Git repositories, for whatever reason.
2. If a repository containes a .git directory (actually checked in, not in the root of the repo), then the user (or some software acting on behalf of the user) will avoid cloning that repo, because they don't want to deal with the possibility of corrupt/malicious sub-repositories.
3. Bare repositories don't contain a .git directory, so this doesn't work.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds