threads / discuss / 35625

It seems there is a very tight character count limit in .gitconfig

Subject: It seems there is a very tight character count limit in .gitconfig

## tl;dr

2 messages between Jan 8, 2014 and Jan 8, 2014.

replies: 1people: 2as markdown or json

Li Zhang· Jan 8, 2014, 06:59 UTC · lore

I tried to add url xxx insteadof xxx in .gitconfig. If the length of url exceed 125, git will not work. I am using Ubuntu. The default version is 1.7.9.5. Maybe the latest version solve this already.

Jeff King· Jan 8, 2014, 07:16 UTC · re: Li Zhang · lore

Re: It seems there is a very tight character count limit in .gitconfig

On Wed, Jan 08, 2014 at 02:59:37PM +0800, Li Zhang wrote:
> I tried to add url xxx insteadof xxx in .gitconfig. If the length of
> url exceed 125, git will not work.
> I am using Ubuntu. The default version is 1.7.9.5. Maybe the latest
> version solve this already.

Yes, this was fixed in 0971e99 (Remove the hard coded length limit on variable names in config files, 2012-09-30). Git v1.8.0.1 and higher contain that commit.

-Peff

← back to recent threads