# using gitconfig to get shell access

1 messages from 2010-02-06 to 2010-02-06. Participants: Sitaram Chamarty.
Thread: https://gitlist.dev/t/22546

## Sitaram Chamarty, 2010-02-06 17:33

Subject: using gitconfig to get shell access
Message-ID: <slrnhmr9uh.qqv.sitaramc@sitaramc.homelinux.net>
URL: https://gitlist.dev/e/slrnhmr9uh.qqv.sitaramc%40sitaramc.homelinux.net

```
Hello all,

If I have a bare repo that is accessed only remotely, but I
allow arbitrary 'git config' keys to be set on it by the
remote user (somehow), can any of them be used to make git
run arbitrary commands on the server?

For example, 'hooks.showrev', is a "shell command used to
format each revision in the email".

Of course that's only in contrib, but are there any like
that in the main git config settings?  I took a look through
man git-config and offhand I couldn't find any, but if
someone knows more definitively I'd appreciate hearing about
it.

Thanks,

Sitaram

```
