On 7/16/16 10:26 AM, Peter Uhnák wrote:
Hi,

how can one update a cypress github repository?

e.g. I install it like this

Metacello new
    baseline: 'FileDialog';
    repository: 'github://peteruhnak/file-dialog/repository';
    load.

And then later I want to pull latest changes

as the repo itself doesn't contain commits I cannot do it from Monticello Browser.

The only way I found was to

1. delete github-cache folder in the image folder
2. unload all the loaded packages
3. execute this script again

This is really heavy-handed approach.

Maybe the class BaselineOf could contain method #update or something like that that will automatically do this?

Or is there a better way?

Reloading the baseline using the #get message will cause a fresh download from github, so the following should do the trick:

  Metacello new
    baseline: 'FileDialog';
    repository: 'github://peteruhnak/file-dialog/repository';
    get;
    load.

Dale


Reply via email to