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

Ben Coman btc at openinworld.com
Thu Jun 16 23:53:48 UTC 2016


On Fri, Jun 17, 2016 at 3:46 AM, 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;
>
> But it strikes me that the editing down from
>
> * remote origin
>   Fetch URL: http://github.com/OpenSmalltalk/vm
>   Push  URL: http://github.com/OpenSmalltalk/vm
>   HEAD branch: Cog
>   Remote branches:
>     Cog                    tracked
>     master                 tracked
>     oldTrunk               tracked
>     platform/Cross/plugins tracked
>     platform/win32/plugins tracked
>   Local branch configured for 'git pull':
>     Cog merges with remote Cog
>   Local ref configured for 'git push':
>     Cog pushes to Cog (up to date)
>
> to
>
> Fetch URL: http://github.com/OpenSmalltalk/vm
>
> and thence to
>
> http://github.com/OpenSmalltalk/vm
>
> would best be done in Perl.  So anyone who's motivated, please fix my poor fix.  I'm not a perl whiz.
>
> And I want to put it on the longer term list to replace these perl scripts with squeak or pharo scripts ;-)
>
> _,,,^..^,,,_
> best, Eliot
>

Perhaps you could open an issue to remember this :) ...
https://github.com/OpenSmalltalk/vm/issues

oh, nice shiny features...
cheers -ben


More information about the Vm-dev mailing list