threads / discuss / 22546

using gitconfig to get shell access

Subject: using gitconfig to get shell access

## tl;dr

One message between Feb 6, 2010 and Feb 6, 2010.

replies: 0people: 1as markdown or json

Sitaram Chamarty· Feb 6, 2010, 17:33 UTC · lore
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

← back to recent threads