From: Nikolay Edigaryev Date: Tue, 16 Jan 2024 20:06:39 GMT Subject: Re: [PATCH] clone: support cloning of filtered bundles Message-ID: In-Reply-To: Hello Junio and Phillip, Thanks a lot for the explanations of how this is supposed to work. It seems that to make this work properly, we'd need to: (1) add an argument (or an option) to 'git bundle create', so that the user will be able to explicitly request the inclusion of a desired remote's URL Without such mechanism in place data leak is possible, e.g. remote with credentials hardcoded in it. (2) extend the 'gitformat-bundle' to include 'url' However, a remote can have multiple URLs and other remote-specific options might be necessary to properly work with it. (3) add an argument (or an option) to 'git clone', so that the user will be able to explicitly request the write of the URL contained in the bundle to the repository's config Otherwise, it's insecure, e.g. someone might craft a bundle with a URL that collects data from the user. I don't want waste anyone's time on this anymore because I've toyed with 'git bundle' a bit more and realized that what I'm trying to accomplish can be done the other way: 1. git init 2. git bundle unbundle |