From: Thomas Rast <trast@student.ethz.ch>
To: Douglas Tan <douglas@getgosu.com>
Cc: <git@vger.kernel.org>
Subject: Re: Propagating config to clones/pulls
Date: Tue, 7 Sep 2010 11:23:20 +0200 [thread overview]
Message-ID: <201009071123.21011.trast@student.ethz.ch> (raw)
In-Reply-To: <A8F08AD5-6DB5-4A4D-9A8F-79DDBD93E666@getgosu.com>
Douglas Tan wrote:
>
> I have some config settings that I'll like to make default for
> anyone cloning/pulling from the central remote bare repository. I've
> tried to do this by editing the config file in the bare repository
> on the server but the change doesn't appear when cloning. How can I
> go about pushing default config settings to anyone cloing or pulling
> from the repository?
You can't, since that would open a whole range of security issues.
You can put some config defaults inside the repository itself, but it
is up to your users whether they apply them. Perhaps it's best to
write them as a shellscript that adds to the configuration file(s) so
that it is easy to apply it later, e.g.,
#!/bin/sh
git config diff.jpg.textconv exiftool
cat >> .gitattributes <<EOF
*.jpg diff=jpg
EOF
--
Thomas Rast
trast@{inf,student}.ethz.ch
next prev parent reply other threads:[~2010-09-07 9:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 8:56 Propagating config to clones/pulls Douglas Tan
2010-09-07 9:23 ` Thomas Rast [this message]
2010-09-07 11:05 ` David Aguilar
2010-09-08 3:08 ` Douglas Tan
2010-09-07 21:36 ` Neal Kreitzinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201009071123.21011.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=douglas@getgosu.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).