get-url fails on Mac OS X [Was Re: [Vm-dev] Moving the Cog subversion repository to githup at 2016-6-16 7am UTC]

Bert Freudenberg bert at freudenbergs.de
Sun Jun 19 14:44:01 UTC 2016


On Thu, Jun 16, 2016 at 9:46 PM, Eliot Miranda <eliot.miranda at gmail.com>
wrote:

>
> Hi Perlers,
>
>     in .git_filters/RevDateURL.smudge the URL is obtained with "git remote
> get-url origin", but that doesn't work on Mac OS X git version 1.9.5 (Apple
> Git-50.3).  Instead one has to use git remote show origin.
>
> I'm modifying .git_filters/RevDateURL.smudge to read
>
> $url=`git remote get-url origin 2>/dev/null`;
> if (!$url) { $url=`git remote show origin | grep -i fetch | sed 's/^.*URL:
> //' 2>/dev/null` }
> $url =~ s/\s+$//m;
>

This should work everywhere:

    git config --get remote.origin.url

I just committed that.

- Bert -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20160619/09eb151a/attachment.htm


More information about the Vm-dev mailing list