On Sat, Apr 26, 2014 at 02:07:30PM -0700, Thomas Ferris Nicolaisen wrote: >> Is there a way to get `clone --bare` to create a configuration that >> has `fetch` set, like this: >> >> [remote "origin"] >> url = <url> >> fetch = +refs/heads/*:refs/remotes/origin/* > > Did you try out -c ? > > -c <key>=<value> > Set a configuration variable in the newly-created repository; this > takes effect immediately after the repository is initialized, but > before the remote history is fetched or any files checked out. The > key is in the same format as expected by git-config(1) (e.g., > core.eol=true). If multiple values are given for the same key, > each value will be written to the config file. This makes it safe, > for example, to add additional fetch refspecs to the origin > remote.
No. I really ought to read the manpage a bit more carefully before firing off emails. Thanks for pointing it out, that solved it nicely. /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: mag...@therning.org jabber: mag...@therning.org twitter: magthe http://therning.org/magnus Perl is another example of filling a tiny, short-term need, and then being a real problem in the longer term. -- Alan Kay
pgpMLdABN1M43.pgp
Description: PGP signature