mne-bids-pipeline icon indicating copy to clipboard operation
mne-bids-pipeline copied to clipboard

BUG: Slow fetches

Open larsoner opened this issue 3 years ago • 5 comments

Every time I do git fetch upstream and it takes minutes even though I'm on a good connection because of the gh-pages branch. @hoechenberger is there a good place in the docs for me to add a suggestion from https://stackoverflow.com/questions/26623867/skip-copying-some-branches-tags-to-local-git-with-git-fetch-all to help others?

larsoner avatar Sep 07 '22 15:09 larsoner

@larsoner I would suggest that maybe we take this opportunity to finally find a different place / repo for storing the docs, WDYT? We don't need revision control of those docs anyway…

hoechenberger avatar Sep 07 '22 15:09 hoechenberger

That would be great. I'm not sure the best approach here. It would be nice to avoid having to pull in all of the mne-tools.github.io repo, though. So if we could create a new mne-bids-pipeline.github.io repo that properly deployed to mne.tools/mne-bids-pipeline, I think that would be ideal.

Then we'd want to make sure all mne-* projects do this. I think some of them might actually pull in mne-tools.github.io, modify it, and push, which is a recipe for disaster compared to each project having its own website repo to manage.

larsoner avatar Sep 07 '22 15:09 larsoner

Sounds good to me!

hoechenberger avatar Sep 07 '22 16:09 hoechenberger

if we move the doc somewhere we could use a subdomain eg

bids-pipeline.mne.tools

with a CNAME

but personally I can live with doing "git pull origin main" :)

Message ID: @.***>

agramfort avatar Sep 07 '22 19:09 agramfort

FYI on modern git v2.29.0+ you can do in .git/config:

[remote "upstream"]
	url = [email protected]:/mne-tools/mne-bids-pipeline.git
	fetch = +refs/heads/*:refs/remotes/upstream/*
	fetch = ^refs/heads/gh-pages

This fixed git fetch upstream for me, now it gets main and pre-commit-update-config but not gh-pages

larsoner avatar Apr 23 '24 13:04 larsoner